Commit df0321cc authored by Guido van Rossum's avatar Guido van Rossum

Use compile-time test for 64-bit hardware instead of run-time test.

This silences some compilers.
parent 8bb25bae
......@@ -675,7 +675,11 @@ save_int(Picklerobject *self, PyObject *args) {
long l = PyInt_AS_LONG((PyIntObject *)args);
int len = 0;
if (!self->bin || sizeof(long) == 8 && (l >> 32)) {
if (!self->bin
#if SIZEOF_LONG > 4
|| (l >> 32)
#endif
) {
/* Save extra-long ints in non-binary mode, so that
we can use python long parsing code to restore,
if necessary. */
......@@ -3869,6 +3873,10 @@ initcPickle() {
/****************************************************************************
$Log$
Revision 2.6 1997/05/13 18:00:44 guido
Use compile-time test for 64-bit hardware instead of run-time test.
This silences some compilers.
Revision 2.5 1997/05/07 17:46:13 guido
Instead of importing graminit.h whenever one of the three grammar 'root'
symbols is needed, define these in Python.h with a Py_ prefix.
......
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