[Python-checkins] r46333 - python/trunk/Modules/_struct.c
bob.ippolito
python-checkins at python.org
Fri May 26 16:23:22 CEST 2006
Author: bob.ippolito
Date: Fri May 26 16:23:21 2006
New Revision: 46333
Modified:
python/trunk/Modules/_struct.c
Log:
Fix _struct typo that broke some 64-bit platforms
Modified: python/trunk/Modules/_struct.c
==============================================================================
--- python/trunk/Modules/_struct.c (original)
+++ python/trunk/Modules/_struct.c Fri May 26 16:23:21 2006
@@ -519,7 +519,7 @@
#endif
y = (unsigned int)x;
#if defined(PY_STRUCT_RANGE_CHECKING) && (SIZEOF_LONG > SIZEOF_INT)
- if (x < UINT_MIN || x > UINT_MAX)
+ if (x > UINT_MAX)
return _range_error(f->format, sizeof(y), 1);
#endif
memcpy(p, (char *)&y, sizeof y);
More information about the Python-checkins
mailing list