mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -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:
@@ -695,6 +695,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1194,
|
||||||
/**/
|
/**/
|
||||||
1193,
|
1193,
|
||||||
/**/
|
/**/
|
||||||
|
@@ -717,7 +717,7 @@ early_ret:
|
|||||||
{
|
{
|
||||||
// For a "new()" function "this.member" arguments are
|
// For a "new()" function "this.member" arguments are
|
||||||
// OK. TODO: check for the "this." prefix.
|
// 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;
|
continue;
|
||||||
garray_T *mgap = il == 1 ? &classmembers : &objmembers;
|
garray_T *mgap = il == 1 ? &classmembers : &objmembers;
|
||||||
for (int mi = 0; mi < mgap->ga_len; ++mi)
|
for (int mi = 0; mi < mgap->ga_len; ++mi)
|
||||||
|
Reference in New Issue
Block a user