[vala] Fix name mangling in NULL check for out parameters



commit ee05242952c5f448e504ddb36e3bd3b3962aefae
Author: Jürg Billeter <j bitron ch>
Date:   Wed Jul 29 08:18:39 2009 +0200

    Fix name mangling in NULL check for out parameters

 codegen/valaccodemethodmodule.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/codegen/valaccodemethodmodule.vala b/codegen/valaccodemethodmodule.vala
index ac71cae..977ccd3 100644
--- a/codegen/valaccodemethodmodule.vala
+++ b/codegen/valaccodemethodmodule.vala
@@ -424,7 +424,7 @@ internal class Vala.CCodeMethodModule : CCodeStructModule {
 							var cblock = new CCodeBlock ();
 							cblock.add_statement (new CCodeExpressionStatement (a));
 
-							var condition = new CCodeBinaryExpression (CCodeBinaryOperator.INEQUALITY, new CCodeIdentifier (param.name), new CCodeConstant ("NULL"));
+							var condition = new CCodeBinaryExpression (CCodeBinaryOperator.INEQUALITY, get_variable_cexpression (param.name), new CCodeConstant ("NULL"));
 							var if_statement = new CCodeIfStatement (condition, cblock);
 							cinit.append (if_statement);
 						}



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