[vala/0.36] codegen: Fix typo in is_pure_ccode_expression()



commit 7b17fc1f760b5886c9d8bfc0c83f5706b31c2e73
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Thu Sep 20 12:56:38 2018 +0200

    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

 codegen/valaccodebasemodule.vala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/codegen/valaccodebasemodule.vala b/codegen/valaccodebasemodule.vala
index 1df49fb81..64b729105 100644
--- a/codegen/valaccodebasemodule.vala
+++ b/codegen/valaccodebasemodule.vala
@@ -1383,7 +1383,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) {


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