summaryrefslogtreecommitdiff
path: root/vala/valaarrayresizemethod.vala
diff options
context:
space:
mode:
Diffstat (limited to 'vala/valaarrayresizemethod.vala')
-rw-r--r--vala/valaarrayresizemethod.vala2
1 files changed, 1 insertions, 1 deletions
diff --git a/vala/valaarrayresizemethod.vala b/vala/valaarrayresizemethod.vala
index e8b1eac1a..7a1b0c627 100644
--- a/vala/valaarrayresizemethod.vala
+++ b/vala/valaarrayresizemethod.vala
@@ -33,7 +33,7 @@ public class Vala.ArrayResizeMethod : Method {
var root_symbol = source_reference.file.context.root;
var int_type = new TypeReference ();
- int_type.data_type = (DataType) root_symbol.lookup ("int").node;
+ int_type.data_type = (DataType) root_symbol.scope.lookup ("int");
add_parameter (new FormalParameter ("length", int_type));