ref: 4bc5bb61778432697dc3ce477335ada578cf3474
parent: 407ef33694a8ac5518297af488759b8f8df19e06
author: Ori Bernstein <[email protected]>
date: Wed Mar 20 08:18:56 EDT 2013
Retab.
--- a/parse/tok.c
+++ b/parse/tok.c
@@ -526,11 +526,11 @@
if (isfloat && base == 10) {
t = mktok(Tfloatlit);
t->str = strdupn(&fbuf[start], fidx - start);
- t->fltval = strtod(t->str, NULL);
+ t->fltval = strtod(t->str, NULL);
} else {
t = mktok(Tintlit);
t->str = strdupn(&fbuf[start], fidx - start);
- t->intval = strtol(t->str, NULL, base);
+ t->intval = strtol(t->str, NULL, base);
}
return t;
--- a/test/matchunion_sl.myr
+++ b/test/matchunion_sl.myr
@@ -12,14 +12,18 @@
v = `Str "foo"
match v
+ /*
`Int 127:
-> 42
;;
+ */
`Str s:
std.put("%s\n", s)
;;
+ /*
`Nil:
;;
+ */
;;
-> 0
}