summaryrefslogtreecommitdiffstats
path: root/Python/modsupport.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1991-07-27 21:39:31 (GMT)
committerGuido van Rossum <guido@python.org>1991-07-27 21:39:31 (GMT)
commit139e57b2a46cada3b7911bd59816b97bb4326552 (patch)
tree7a8d9054b4233c24213c317ba1f24cea261b7a69 /Python/modsupport.c
parent1492c27350aacebff19fa76c72c5fc529d84d53a (diff)
downloadcpython-139e57b2a46cada3b7911bd59816b97bb4326552.zip
cpython-139e57b2a46cada3b7911bd59816b97bb4326552.tar.gz
cpython-139e57b2a46cada3b7911bd59816b97bb4326552.tar.bz2
Support for long integers
Diffstat (limited to 'Python/modsupport.c')
-rw-r--r--Python/modsupport.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Python/modsupport.c b/Python/modsupport.c
index 604bd98..2f3fa4b 100644
--- a/Python/modsupport.c
+++ b/Python/modsupport.c
@@ -410,6 +410,10 @@ getdoublearg(args, px)
*px = getintvalue(args);
return 1;
}
+ if (is_longobject(args)) {
+ *px = dgetlongvalue(args);
+ return 1;
+ }
return err_badarg();
}