mirror of
https://github.com/neovim/neovim.git
synced 2025-10-04 00:46:30 +00:00
refactor: format casting of negative number better (#26482)
This commit is contained in:
@@ -5029,7 +5029,7 @@ size_t string2float(const char *const text, float_T *const ret_value)
|
||||
return 3;
|
||||
}
|
||||
if (STRNICMP(text, "-inf", 3) == 0) {
|
||||
*ret_value = (float_T) - INFINITY;
|
||||
*ret_value = (float_T)(-INFINITY);
|
||||
return 4;
|
||||
}
|
||||
if (STRNICMP(text, "nan", 3) == 0) {
|
||||
|
Reference in New Issue
Block a user