]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
codegen: Fix typo in is_pure_ccode_expression()
authorRico Tzschichholz <ricotz@ubuntu.com>
Thu, 20 Sep 2018 10:56:38 +0000 (12:56 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Thu, 20 Sep 2018 10:56:38 +0000 (12:56 +0200)
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

codegen/valaccodebasemodule.vala

index 2da65098a262fb4be52f469fef42f4bb9236588c..e37042044c9b9d6d066781cde4035c4a979e31db 100644 (file)
@@ -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) {