mirror of
https://github.com/neovim/neovim.git
synced 2025-09-12 06:18:16 +00:00
Fix shadowed variable in build_stl_str_hl
This commit is contained in:
@@ -3580,8 +3580,8 @@ build_stl_str_hl(
|
|||||||
// { Determine how many characters the number will take up when printed
|
// { Determine how many characters the number will take up when printed
|
||||||
// Note: We have to cast the base because the compiler uses
|
// Note: We have to cast the base because the compiler uses
|
||||||
// unsigned ints for the enum values.
|
// unsigned ints for the enum values.
|
||||||
long num_chars = 0;
|
long num_chars = 1;
|
||||||
for (long n = num, num_chars = 1; n >= (int) base; n /= (int) base) {
|
for (long n = num; n >= (int) base; n /= (int) base) {
|
||||||
num_chars++;
|
num_chars++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user