Commit cf37dfc3 authored by Tim Peters's avatar Tim Peters

Change IS_LITTLE_ENDIAN macro -- a little faster now.

parent ad98db1d
......@@ -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. */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment