[vala] Fix name mangling in NULL check for out parameters
- From: Jürg Billeter <juergbi src gnome org>
- To: svn-commits-list gnome org
- Subject: [vala] Fix name mangling in NULL check for out parameters
- Date: Wed, 29 Jul 2009 06:20:31 +0000 (UTC)
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]