diff options
author | Bor Grošelj Simić <bor.groseljsimic@telemach.net> | 2022-01-19 03:33:12 +0100 |
---|---|---|
committer | Quentin Carbonneaux <quentin@c9x.me> | 2022-01-23 14:19:07 +0100 |
commit | b0d27d8a019811d6a4e0c0cb7ec804ab27fcec80 (patch) | |
tree | 106b463f0a1aa26dd1e0bf2db3437396391e8ccd | |
parent | 49654f82adc9cd1de6b5196dd4efd683c542215f (diff) | |
download | roux-b0d27d8a019811d6a4e0c0cb7ec804ab27fcec80.tar.gz |
increase token limit to 255
-rw-r--r-- | parse.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/parse.c b/parse.c index c05c370..e5143ce 100644 --- 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; |