mirror of https://github.com/python/cpython.git
Don't use NULL as 0 int!
This commit is contained in:
parent
74b31c9826
commit
7cdf5eb5b9
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue