mirror of
https://github.com/python/cpython.git
synced 2025-07-16 07:45:20 +00:00
Change IS_LITTLE_ENDIAN macro -- a little faster now.
This commit is contained in:
parent
ad98db1d9e
commit
cf37dfc3db
1 changed files with 1 additions and 1 deletions
|
@ -562,7 +562,7 @@ PyLong_AsVoidPtr(PyObject *vv)
|
|||
* rewritten to use the newer PyLong_{As,From}ByteArray API.
|
||||
*/
|
||||
|
||||
#define IS_LITTLE_ENDIAN *(char*)&one != '\0'
|
||||
#define IS_LITTLE_ENDIAN (int)*(unsigned char*)&one
|
||||
|
||||
/* Create a new long int object from a C LONG_LONG int. */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue