summaryrefslogtreecommitdiff
path: root/libstd/intparse.myr
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2013-12-27 13:15:24 -0500
committerOri Bernstein <ori@eigenstate.org>2013-12-27 13:15:24 -0500
commit09a8efbc7e59523a6df366fffee7b207f3327c68 (patch)
treefc8870f9b2def4092ddb1de0fb24dcfa8079a743 /libstd/intparse.myr
parent460b6ed7be00fe2bbf4807bc67c49e07d10384f0 (diff)
downloadmc-09a8efbc7e59523a6df366fffee7b207f3327c68.tar.gz
Make 'test' work again.
Diffstat (limited to 'libstd/intparse.myr')
-rw-r--r--libstd/intparse.myr2
1 files changed, 1 insertions, 1 deletions
diff --git a/libstd/intparse.myr b/libstd/intparse.myr
index 8d5b6cf..28d859c 100644
--- a/libstd/intparse.myr
+++ b/libstd/intparse.myr
@@ -50,7 +50,7 @@ generic doparse = {s, isneg, base
while s.len != 0
(c, s) = striter(s)
cv = charval(c, base)
- if cv > 0
+ if cv >= 0
v *= (base castto(@a::(tcint,tcnum,tctest)))
v += cv
else