[vala] Avoid conflicts for internal array size variables
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] Avoid conflicts for internal array size variables
- Date: Mon, 22 Mar 2010 20:28:26 +0000 (UTC)
commit cbf48b1524dcc7f5ac38a49cd799328dc50db5a5
Author: Jürg Billeter <j bitron ch>
Date: Mon Mar 22 21:27:08 2010 +0100
Avoid conflicts for internal array size variables
Fixes bug 570547.
codegen/valaccodearraymodule.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/codegen/valaccodearraymodule.vala b/codegen/valaccodearraymodule.vala
index 568e462..df8ee4d 100644
--- a/codegen/valaccodearraymodule.vala
+++ b/codegen/valaccodearraymodule.vala
@@ -357,7 +357,7 @@ internal class Vala.CCodeArrayModule : CCodeMethodCallModule {
}
public override string get_array_size_cname (string array_cname) {
- return "%s_size".printf (array_cname);
+ return "_%s_size_".printf (array_cname);
}
public override CCodeExpression get_array_size_cexpression (Expression array_expr) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]