From: Jürg Billeter Date: Fri, 3 Sep 2010 15:04:01 +0000 (+0200) Subject: codegen: Fix lcopy_value function generated for fundamental classes X-Git-Tag: 0.9.8~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5997a2b25cd752cc4ef6072c66cd69f76114809e;p=thirdparty%2Fvala.git codegen: Fix lcopy_value function generated for fundamental classes --- diff --git a/codegen/valagtypemodule.vala b/codegen/valagtypemodule.vala index 7e45efe85..2b4d9b64a 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 ();