From: Fred Drake Date: Mon, 11 May 1998 03:31:16 +0000 (+0000) Subject: parser_compare_nodes(): Corrected a minor type error; eliminate one GCC X-Git-Tag: v1.5.2a1~683 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ed3da23e446831076a0dc1b1313d38ee93637513;p=python parser_compare_nodes(): Corrected a minor type error; eliminate one GCC warning (at least under Linux). --- diff --git a/Modules/parsermodule.c b/Modules/parsermodule.c index 465fa25759..3db3431c73 100644 --- a/Modules/parsermodule.c +++ b/Modules/parsermodule.c @@ -266,7 +266,7 @@ parser_compare_nodes(left, right) for (j = 0; j < NCH(left); ++j) { int v = parser_compare_nodes(CHILD(left, j), CHILD(right, j)); - if (v != NULL) + if (v != 0) return (v); } return (0);