summaryrefslogtreecommitdiffstats
path: root/Modules/resource.c
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2016-09-06 17:46:49 (GMT)
committerBenjamin Peterson <benjamin@python.org>2016-09-06 17:46:49 (GMT)
commitaf580dff4af3cb812cdd7a229a4a65059b3bc1ee (patch)
tree69954d6e499793f75edc045e31ade0e0eabb6053 /Modules/resource.c
parent45c7514de406d9ed84e46d80500fb4ac87a94ea8 (diff)
downloadcpython-af580dff4af3cb812cdd7a229a4a65059b3bc1ee.zip
cpython-af580dff4af3cb812cdd7a229a4a65059b3bc1ee.tar.gz
cpython-af580dff4af3cb812cdd7a229a4a65059b3bc1ee.tar.bz2
replace PY_LONG_LONG with long long
Diffstat (limited to 'Modules/resource.c')
-rw-r--r--Modules/resource.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/resource.c b/Modules/resource.c
index bbe8aef..6702b7a 100644
--- a/Modules/resource.c
+++ b/Modules/resource.c
@@ -137,8 +137,8 @@ rlimit2py(struct rlimit rl)
{
if (sizeof(rl.rlim_cur) > sizeof(long)) {
return Py_BuildValue("LL",
- (PY_LONG_LONG) rl.rlim_cur,
- (PY_LONG_LONG) rl.rlim_max);
+ (long long) rl.rlim_cur,
+ (long long) rl.rlim_max);
}
return Py_BuildValue("ll", (long) rl.rlim_cur, (long) rl.rlim_max);
}
@@ -437,7 +437,7 @@ PyInit_resource(void)
#endif
if (sizeof(RLIM_INFINITY) > sizeof(long)) {
- v = PyLong_FromLongLong((PY_LONG_LONG) RLIM_INFINITY);
+ v = PyLong_FromLongLong((long long) RLIM_INFINITY);
} else
{
v = PyLong_FromLong((long) RLIM_INFINITY);