diff options
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/longobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/longobject.c b/Objects/longobject.c index f2f6f95..2b57ea1 100644 --- a/Objects/longobject.c +++ b/Objects/longobject.c @@ -383,7 +383,7 @@ PyLong_FromLong(long ival) #define PYLONG_FROM_UINT(INT_TYPE, ival) \ do { \ if (IS_SMALL_UINT(ival)) { \ - return get_small_int((ival)); \ + return get_small_int((sdigit)(ival)); \ } \ /* Count the number of Python digits. */ \ Py_ssize_t ndigits = 0; \ |