patch 9.0.1194: compiler warning for comparing pointer with int
Problem: Compiler warning for comparing pointer with int.
Solution: Change NULL to zero.
diff --git a/src/version.c b/src/version.c
index a483998..65c9e35 100644
--- a/src/version.c
+++ b/src/version.c
@@ -696,6 +696,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 1194,
+/**/
1193,
/**/
1192,
diff --git a/src/vim9class.c b/src/vim9class.c
index 3169f62..d66fa3e 100644
--- a/src/vim9class.c
+++ b/src/vim9class.c
@@ -717,7 +717,7 @@
{
// 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)