From a9dfcb7e02a0b1268c46a1bacd3f29031265a777 Mon Sep 17 00:00:00 2001 From: Wayne Rowcliffe Date: Fri, 18 Sep 2015 22:41:49 -0500 Subject: Fix shadowed variable in build_stl_str_hl --- src/nvim/buffer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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++; } -- cgit