From 5dd974083835febfde957e1733cd5e2c2520200e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Billeter?= Date: Mon, 17 Nov 2008 21:36:37 +0000 Subject: Allow any integer compatible value to be used as array index, fixes bug MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 2008-11-17 Jürg Billeter * vala/valaarraycreationexpression.vala: * vala/valaelementaccess.vala: * vala/valasourcefile.vala: Allow any integer compatible value to be used as array index, fixes bug 561057 svn path=/trunk/; revision=2029 --- vala/valasourcefile.vala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vala/valasourcefile.vala') diff --git a/vala/valasourcefile.vala b/vala/valasourcefile.vala index 085372cbe..4d257c5f4 100644 --- a/vala/valasourcefile.vala +++ b/vala/valasourcefile.vala @@ -457,7 +457,7 @@ public class Vala.SourceFile { { source_array = new Gee.ArrayList (); string[] lines = cont.split ("\n", 0); - uint idx; + int idx; for (idx = 0; lines[idx] != null; ++idx) { source_array.add (lines[idx]); } -- cgit v1.2.1