diff options
Diffstat (limited to 'src/nvim/buffer.c')
-rw-r--r-- | src/nvim/buffer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c index 3ccef9aaf0..d6ab0ef671 100644 --- a/src/nvim/buffer.c +++ b/src/nvim/buffer.c @@ -3580,8 +3580,8 @@ build_stl_str_hl( // { Determine how many characters the number will take up when printed // Note: We have to cast the base because the compiler uses // unsigned ints for the enum values. - long num_chars = 0; - for (long n = num, num_chars = 1; n >= (int) base; n /= (int) base) { + long num_chars = 1; + for (long n = num; n >= (int) base; n /= (int) base) { num_chars++; } |