[vala] codegen: Fix lcopy_value function generated for fundamental classes



commit 676f303284dd68a05388eb1329621eec31b81e87
Author: Jürg Billeter <j bitron ch>
Date:   Fri Sep 3 17:04:01 2010 +0200

    codegen: Fix lcopy_value function generated for fundamental classes

 codegen/valagtypemodule.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/codegen/valagtypemodule.vala b/codegen/valagtypemodule.vala
index 84fbb2b..d8531a5 100644
--- a/codegen/valagtypemodule.vala
+++ b/codegen/valagtypemodule.vala
@@ -817,7 +817,7 @@ public class Vala.GTypeModule : GErrorModule {
 
 		var main_else_true = new CCodeBlock ();
 		var main_else_if_true = new CCodeBlock ();
-		var main_else_if_condition = new CCodeBinaryExpression (CCodeBinaryOperator.AND, new CCodeIdentifier ("collect_flags"), new CCodeIdentifier ("G_VALUE_NOCOPY_CONTENTS"));
+		var main_else_if_condition = new CCodeBinaryExpression (CCodeBinaryOperator.BITWISE_AND, new CCodeIdentifier ("collect_flags"), new CCodeIdentifier ("G_VALUE_NOCOPY_CONTENTS"));
 		var main_else_if = new CCodeIfStatement (main_else_if_condition, main_else_if_true, main_else_true);
 
 		var main_true = new CCodeBlock ();



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]