]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.1184: Unnecessary use of vim_tolower() in vim_strnicmp_asc() v9.1.1184
authorzeertzjq <zeertzjq@outlook.com>
Sat, 8 Mar 2025 15:42:48 +0000 (16:42 +0100)
committerChristian Brabandt <cb@256bit.org>
Sat, 8 Mar 2025 15:42:48 +0000 (16:42 +0100)
commitb7dc5d3b6169efc8aa0b9d86476072877e74bc2c
treeba62fc69f55e53b7dfe154c6d0ff550e2799cff0
parent62f19541f4215e9b31698a3e0331b0e6421a1f37
patch 9.1.1184: Unnecessary use of vim_tolower() in vim_strnicmp_asc()

Problem:  Unnecessary use of vim_tolower() in vim_strnicmp_asc().
Solution: Use TOLOWER_ASC() instead (zeertzjq).

It was passing *s1 and *s2 to vim_tolower(). When char is signed, which
is the case on most platforms, c < 0x80 is always true, so it already
behaves the same as TOLOWER_ASC().

closes: #16826

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/strings.c
src/version.c