# HG changeset patch # User Bram Moolenaar # Date 1673638203 -3600 # Node ID 2b523bbb3a6fe533acc376be5498fde61ef94aa8 # Parent 27bc6844836a29528020150451cd16c2b5f495ab patch 9.0.1194: compiler warning for comparing pointer with int Commit: https://github.com/vim/vim/commit/b40a2fb3b3e4fef137eebb3bab9c02adc5540658 Author: Bram Moolenaar Date: Fri Jan 13 19:18:38 2023 +0000 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 --- a/src/version.c +++ b/src/version.c @@ -696,6 +696,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1194, +/**/ 1193, /**/ 1192, diff --git a/src/vim9class.c b/src/vim9class.c --- a/src/vim9class.c +++ b/src/vim9class.c @@ -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)