Thanks to visit codestin.com Credit goes to github.com
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 42107c5 commit 9cb0c38Copy full SHA for 9cb0c38
1 file changed
Objects/longobject.c
@@ -572,7 +572,7 @@ PyLong_AsLongLong(PyObject *vv)
572
(PyLongObject *)vv, (unsigned char *)&bytes,
573
SIZEOF_LONG_LONG, IS_LITTLE_ENDIAN, 1);
574
575
- return (LONG_LONG)(res < 0 ? res : bytes);
+ return res < 0 ? (LONG_LONG)res : bytes;
576
}
577
578
/* Get a C unsigned LONG_LONG int from a long int object.
@@ -594,7 +594,7 @@ PyLong_AsUnsignedLongLong(PyObject *vv)
594
595
SIZEOF_LONG_LONG, IS_LITTLE_ENDIAN, 0);
596
597
- return (unsigned LONG_LONG)(res < 0 ? res : bytes);
+ return res < 0 ? (unsigned LONG_LONG)res : bytes;
598
599
600
#undef IS_LITTLE_ENDIAN
0 commit comments