commit b0d27d8a019811d6a4e0c0cb7ec804ab27fcec80
parent 49654f82adc9cd1de6b5196dd4efd683c542215f
Author: Bor Grošelj Simić <bor.groseljsimic@telemach.net>
Date: Wed, 19 Jan 2022 03:33:12 +0100
increase token limit to 255
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/parse.c b/parse.c
@@ -113,7 +113,7 @@ enum {
M = 23,
};
-static char lexh[1 << (32-M)];
+static uchar lexh[1 << (32-M)];
static FILE *inf;
static char *inpath;
static int thead;
@@ -161,7 +161,7 @@ lexinit()
for (i=0; i<NPubOp; ++i)
if (optab[i].name)
kwmap[i] = optab[i].name;
- assert(Ntok <= CHAR_MAX);
+ assert(Ntok <= UCHAR_MAX);
for (i=0; i<Ntok; ++i)
if (kwmap[i]) {
h = hash(kwmap[i])*K >> M;