commit | cf37dfc3dba1040b982ca4b39a5728c9d26e7cf7 | [log] [tgz] |
---|---|---|
author | Tim Peters <tim.peters@gmail.com> | Thu Jun 14 18:42:50 2001 +0000 |
committer | Tim Peters <tim.peters@gmail.com> | Thu Jun 14 18:42:50 2001 +0000 |
tree | 2d408c1a756ecae114d1935e4c2f3ef4e883bd1e | |
parent | ad98db1d9e15df8cda494fffec68f9cf59ed073f [diff] |
Change IS_LITTLE_ENDIAN macro -- a little faster now.
diff --git a/Objects/longobject.c b/Objects/longobject.c index 250db7c..be9430a 100644 --- a/Objects/longobject.c +++ b/Objects/longobject.c
@@ -562,7 +562,7 @@ * 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. */