We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64abcc3 commit a85846bCopy full SHA for a85846b
1 file changed
Modules/resource.c
@@ -7,6 +7,7 @@
7
#include <string.h>
8
#include <sys/resource.h> // getrusage()
9
#include <unistd.h> // getpagesize()
10
+#include <internal/pycore_long.h> // _PyLong_IsNegative()
11
12
/* On some systems, these aren't in any header file.
13
On others they are, with inconsistent prototypes.
@@ -155,7 +156,7 @@ py2rlim(PyObject *obj, rlim_t *out)
155
156
if (obj == NULL) {
157
return -1;
158
}
- int neg = PyLong_IsNegative(obj);
159
+ int neg = _PyLong_IsNegative((const PyLongObject *)obj);
160
assert(neg >= 0);
161
Py_ssize_t bytes = PyLong_AsNativeBytes(obj, out, sizeof(*out),
162
Py_ASNATIVEBYTES_NATIVE_ENDIAN |
0 commit comments