0
0
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:
John Marriott
2025-04-14 21:19:34 +02:00
committed by Christian Brabandt
parent 4ec93fec12
commit 10f69298b4
3 changed files with 29 additions and 1 deletions

View File

@@ -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;