##// END OF EJS Templates
dirs: fix out-of-bounds access in Py3...
Martin von Zweigbergk -
r44290:a47ccdcc default
parent child Browse files
Show More
@@ -14,7 +14,7
14 #include "util.h"
14 #include "util.h"
15
15
16 #ifdef IS_PY3K
16 #ifdef IS_PY3K
17 #define PYLONG_VALUE(o) ((PyLongObject *)o)->ob_digit[1]
17 #define PYLONG_VALUE(o) ((PyLongObject *)o)->ob_digit[0]
18 #else
18 #else
19 #define PYLONG_VALUE(o) PyInt_AS_LONG(o)
19 #define PYLONG_VALUE(o) PyInt_AS_LONG(o)
20 #endif
20 #endif
General Comments 0
You need to be logged in to leave comments. Login now