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



commit fd1d3303bb4c1536b2966fa8571486cb2fe9ffbe
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 bd0d47328..3df28c807 100644
--- a/codegen/valaccodebasemodule.vala
+++ b/codegen/valaccodebasemodule.vala
@@ -1407,7 +1407,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]