Change IS_LITTLE_ENDIAN macro -- a little faster now.

This commit is contained in:
Tim Peters 2001-06-14 18:42:50 +00:00
parent ad98db1d9e
commit cf37dfc3db

View file

@ -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. */