diff options
Diffstat (limited to 'Python/sysmodule.c')
-rw-r--r-- | Python/sysmodule.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c index 99a6ff7..3026b66 100644 --- a/Python/sysmodule.c +++ b/Python/sysmodule.c @@ -461,14 +461,15 @@ _PySys_Init(void) /* Assumes that longs are at least 2 bytes long. Should be safe! */ unsigned long number = 1; + char *value; s = (char *) &number; if (s[0] == 0) - PyDict_SetItemString(sysdict, "byte_order", - PyString_FromString("big")); + value = "big"; else - PyDict_SetItemString(sysdict, "byte_order", - PyString_FromString("little")); + value = "little"; + PyDict_SetItemString(sysdict, "byteorder", + PyString_FromString(value)); } #ifdef MS_COREDLL PyDict_SetItemString(sysdict, "dllhandle", |