summaryrefslogtreecommitdiff
path: root/parse/tok.c
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2014-12-29 22:11:53 -0800
committerOri Bernstein <ori@eigenstate.org>2014-12-29 23:17:48 -0800
commitfc7a74ca128331bed45b986d828a317071dc5cde (patch)
tree8ffe1539fb107b6e68e3c0bb80a115cc448e2d91 /parse/tok.c
parent02f19e5b2e6a94199d6eb9a97417e1feb3b2d0aa (diff)
downloadmc-fc7a74ca128331bed45b986d828a317071dc5cde.tar.gz
Fix a buggy usage of lfatal()
we were passing a null string. oshit.
Diffstat (limited to 'parse/tok.c')
-rw-r--r--parse/tok.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/parse/tok.c b/parse/tok.c
index f4ff221..c7e7d0d 100644
--- a/parse/tok.c
+++ b/parse/tok.c
@@ -110,7 +110,7 @@ static void eatcomment(void)
curloc.line++;
break;
case End:
- lfatal(curloc, 0, "File ended within comment starting at line %d", startln);
+ lfatal(curloc, "File ended within comment starting at line %d", startln);
break;
}
if (depth == 0)
@@ -618,7 +618,7 @@ static Tok *oper(void)
break;
default:
tt = Terror;
- lfatal(curloc, 0, "Junk character %c", c);
+ lfatal(curloc, "Junk character %c", c);
break;
}
return mktok(tt);
@@ -648,10 +648,10 @@ static Tok *number(int base)
if (c == '.')
isfloat = 1;
else if (hexval(c) < 0 || hexval(c) > base)
- lfatal(curloc, 0, "Integer digit '%c' outside of base %d", c, base);
+ lfatal(curloc, "Integer digit '%c' outside of base %d", c, base);
if (nbuf >= sizeof buf) {
buf[nbuf-1] = '\0';
- lfatal(curloc, 0, "number %s... too long to represent", buf);
+ lfatal(curloc, "number %s... too long to represent", buf);
}
buf[nbuf++] = c;
}