]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Don't use NULL as 0 int!
authorGuido van Rossum <guido@python.org>
Mon, 6 Apr 1992 12:34:45 +0000 (12:34 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 6 Apr 1992 12:34:45 +0000 (12:34 +0000)
Modules/cgensupport.c
Python/cgensupport.c

index b24c80a428ef7f5a3fc276a7b4b41c7a0d7df12b..a3023ebb9c047ecc80e6d06688580fb907f4c531 100644 (file)
@@ -171,7 +171,7 @@ getistringarg(args, nargs, i, p_arg)
 {
        object *v;
        if (!getiobjectarg(args, nargs, i, &v))
-               return NULL;
+               return 0;
        if (!is_stringobject(v)) {
                return err_badarg();
        }
index b24c80a428ef7f5a3fc276a7b4b41c7a0d7df12b..a3023ebb9c047ecc80e6d06688580fb907f4c531 100644 (file)
@@ -171,7 +171,7 @@ getistringarg(args, nargs, i, p_arg)
 {
        object *v;
        if (!getiobjectarg(args, nargs, i, &v))
-               return NULL;
+               return 0;
        if (!is_stringobject(v)) {
                return err_badarg();
        }