]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
codegen: Fix lcopy_value function generated for fundamental classes
authorJürg Billeter <j@bitron.ch>
Fri, 3 Sep 2010 15:04:01 +0000 (17:04 +0200)
committerJürg Billeter <j@bitron.ch>
Sat, 4 Sep 2010 14:58:41 +0000 (16:58 +0200)
codegen/valagtypemodule.vala

index 7e45efe8597871f2c0b407285a5bad44168d2768..2b4d9b64a91fb2aabfb84ca7fe841568fe903be6 100644 (file)
@@ -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 ();