0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 9.0.1194: compiler warning for comparing pointer with int

Problem:    Compiler warning for comparing pointer with int.
Solution:   Change NULL to zero.
This commit is contained in:
Bram Moolenaar
2023-01-13 19:18:38 +00:00
parent 32030a9f3b
commit b40a2fb3b3
2 changed files with 3 additions and 1 deletions

View File

@@ -717,7 +717,7 @@ early_ret:
{
// For a "new()" function "this.member" arguments are
// OK. TODO: check for the "this." prefix.
if (STRNCMP(uf->uf_name, "new", 3) == NULL && il == 2)
if (STRNCMP(uf->uf_name, "new", 3) == 0 && il == 2)
continue;
garray_T *mgap = il == 1 ? &classmembers : &objmembers;
for (int mi = 0; mi < mgap->ga_len; ++mi)