vala r1800 - in trunk: . vala
- From: juergbi svn gnome org
- To: svn-commits-list gnome org
- Subject: vala r1800 - in trunk: . vala
- Date: Sat, 27 Sep 2008 11:07:43 +0000 (UTC)
Author: juergbi
Date: Sat Sep 27 11:07:42 2008
New Revision: 1800
URL: http://svn.gnome.org/viewvc/vala?rev=1800&view=rev
Log:
2008-09-27 JÃrg Billeter <j bitron ch>
* vala/valageniescanner.vala:
* vala/valascanner.vala:
Fix member access on integer literals, fixes bug 547419
Modified:
trunk/ChangeLog
trunk/vala/valageniescanner.vala
trunk/vala/valascanner.vala
Modified: trunk/vala/valageniescanner.vala
==============================================================================
--- trunk/vala/valageniescanner.vala (original)
+++ trunk/vala/valageniescanner.vala Sat Sep 27 11:07:42 2008
@@ -568,7 +568,7 @@
current++;
}
}
- } else if (current < end && current[0] == '.') {
+ } else if (current < end - 1 && current[0] == '.' && current[1].isdigit ()) {
current++;
while (current < end && current[0].isdigit ()) {
current++;
Modified: trunk/vala/valascanner.vala
==============================================================================
--- trunk/vala/valascanner.vala (original)
+++ trunk/vala/valascanner.vala Sat Sep 27 11:07:42 2008
@@ -361,7 +361,7 @@
current++;
}
}
- } else if (current < end && current[0] == '.') {
+ } else if (current < end - 1 && current[0] == '.' && current[1].isdigit ()) {
current++;
while (current < end && current[0].isdigit ()) {
current++;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]