diff options
-rw-r--r-- | src/cmd/freq.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/freq.c b/src/cmd/freq.c index 19b3fa9a..daba277f 100644 --- a/src/cmd/freq.c +++ b/src/cmd/freq.c @@ -2,7 +2,7 @@ #include <libc.h> #include <bio.h> -long count[1<<16]; +uvlong count[Runemax+1]; Biobuf bout; void freq(int, char*); @@ -105,7 +105,7 @@ freq(int f, char *s) else Bprint(&bout, "%C ", (int)i); } - Bprint(&bout, "%8ld\n", count[i]); + Bprint(&bout, "%8llud\n", count[i]); } Bflush(&bout); } |