summaryrefslogtreecommitdiff
path: root/mbld
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-12-11 22:20:11 -0800
committerOri Bernstein <ori@eigenstate.org>2015-12-11 22:20:11 -0800
commite9a476ebae14c3d6a806bddc1b7514b60a846fc4 (patch)
tree3ef4b7eb6e6b609d04e872b9e81887bc669512a5 /mbld
parentd21cc40703f9e3fb86e590fce62ee0847fc6cfd8 (diff)
downloadmc-e9a476ebae14c3d6a806bddc1b7514b60a846fc4.tar.gz
Fix code to disallow use before definition.
At least in some cases.
Diffstat (limited to 'mbld')
-rw-r--r--mbld/syssel.myr3
1 files changed, 2 insertions, 1 deletions
diff --git a/mbld/syssel.myr b/mbld/syssel.myr
index 437b013..d81452b 100644
--- a/mbld/syssel.myr
+++ b/mbld/syssel.myr
@@ -152,7 +152,8 @@ const skipspace = {data
const word = {data
var c, split
- c = std.decode(data[split:])
+ split = 0
+ c = std.decode(data[:])
while std.isalnum(c) || c == '.' || c == '_' || c == '$'
split += std.charlen(c)
;;