[vala] Fix type declaration for sizeof expressions
- From: Jürg Billeter <juergbi src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [vala] Fix type declaration for sizeof expressions
- Date: Sat, 19 Dec 2009 11:39:19 +0000 (UTC)
commit 3d29edacca913ac824690bed45dfbef983cdae85
Author: Jürg Billeter <j bitron ch>
Date: Sat Dec 19 12:37:38 2009 +0100
Fix type declaration for sizeof expressions
codegen/valaccodebasemodule.vala | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/codegen/valaccodebasemodule.vala b/codegen/valaccodebasemodule.vala
index 3ca3c6f..7a1b455 100644
--- a/codegen/valaccodebasemodule.vala
+++ b/codegen/valaccodebasemodule.vala
@@ -3957,6 +3957,8 @@ internal class Vala.CCodeBaseModule : CCodeModule {
}
public override void visit_sizeof_expression (SizeofExpression expr) {
+ generate_type_declaration (expr.type_reference, source_declarations);
+
var csizeof = new CCodeFunctionCall (new CCodeIdentifier ("sizeof"));
csizeof.add_argument (new CCodeIdentifier (expr.type_reference.get_cname ()));
expr.ccodenode = csizeof;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]