mirror of
https://github.com/vim/vim.git
synced 2025-10-20 08:14:18 -04:00
patch 9.1.1300: wrong detection of -inf
Problem: wrong detection of -inf Solution: correctly compare 4 characters and not 3 (John Marriott) closes: #17109 Signed-off-by: John Marriott <basilisk@internode.on.net> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
4ec93fec12
commit
10f69298b4
@@ -41,7 +41,7 @@ string2float(
|
||||
*value = INFINITY;
|
||||
return 3;
|
||||
}
|
||||
if (STRNICMP(text, "-inf", 3) == 0)
|
||||
if (STRNICMP(text, "-inf", 4) == 0)
|
||||
{
|
||||
*value = -INFINITY;
|
||||
return 4;
|
||||
|
Reference in New Issue
Block a user