diff options
-rw-r--r-- | common/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/util.c b/common/util.c index 25a3e861..13397437 100644 --- a/common/util.c +++ b/common/util.c | |||
@@ -8,7 +8,7 @@ int wrap(int i, int max) { | |||
8 | 8 | ||
9 | int numlen(int n) { | 9 | int numlen(int n) { |
10 | if (n == 0) { | 10 | if (n == 0) { |
11 | return n; | 11 | return 1; |
12 | } | 12 | } |
13 | return log10(n) + 1; | 13 | return log10(n) + 1; |
14 | } | 14 | } |