diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-12-27 13:09:36 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-12-27 13:09:36 (GMT) |
commit | 994f04dbf576f4ebafb9de2bc6821e15cb0de0ea (patch) | |
tree | 4967ed9c9688f7fe035c646de993c337141051b0 /Modules/svmodule.c | |
parent | 58c2c6ebb893917e759cc1401b0d862b3f7c1a94 (diff) | |
download | cpython-994f04dbf576f4ebafb9de2bc6821e15cb0de0ea.zip cpython-994f04dbf576f4ebafb9de2bc6821e15cb0de0ea.tar.gz cpython-994f04dbf576f4ebafb9de2bc6821e15cb0de0ea.tar.bz2 |
Issue #28998: More APIs now support longs as well as ints.
Diffstat (limited to 'Modules/svmodule.c')
-rw-r--r-- | Modules/svmodule.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/svmodule.c b/Modules/svmodule.c index 1519065..42c49c8 100644 --- a/Modules/svmodule.c +++ b/Modules/svmodule.c @@ -686,7 +686,7 @@ sv_LoadMap(svobject *self, PyObject *args) if (!cell) goto finally; - if (!PyInt_Check(cell)) { + if (!PyInt_Check(cell) && !PyLong_Check(cell)) { PyErr_BadArgument(); goto finally; } @@ -757,7 +757,7 @@ doParams(svobject *self, PyObject *args, if (!v) goto finally; - if (!PyInt_Check(v)) { + if (!PyInt_Check(v) && !PyLong_Check(v)) { PyErr_BadArgument(); goto finally; } |