From: Rico Tzschichholz Date: Thu, 20 Sep 2018 10:56:38 +0000 (+0200) Subject: codegen: Fix typo in is_pure_ccode_expression() X-Git-Tag: 0.43.1~229 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a7dcb10202425ee44c0a7e9787040fdd5e852365;p=thirdparty%2Fvala.git codegen: Fix typo in is_pure_ccode_expression() Note that this method is not used anymore and should likely be dropped. Introduced with e086fada22eb7221cdbe34d7d4ac41445a50130a Fixes https://gitlab.gnome.org/GNOME/vala/issues/673 --- diff --git a/codegen/valaccodebasemodule.vala b/codegen/valaccodebasemodule.vala index 2da65098a..e37042044 100644 --- a/codegen/valaccodebasemodule.vala +++ b/codegen/valaccodebasemodule.vala @@ -1422,7 +1422,7 @@ public abstract class Vala.CCodeBaseModule : CodeGenerator { return true; } else if (cexpr is CCodeBinaryExpression) { var cbinary = (CCodeBinaryExpression) cexpr; - return is_pure_ccode_expression (cbinary.left) && is_constant_ccode_expression (cbinary.right); + return is_pure_ccode_expression (cbinary.left) && is_pure_ccode_expression (cbinary.right); } else if (cexpr is CCodeUnaryExpression) { var cunary = (CCodeUnaryExpression) cexpr; switch (cunary.operator) {