diff Modules/_struct.c @ 38370:fa98b8df0fe2 legacy-trunk

Fix _struct typo that broke some 64-bit platforms
author Bob Ippolito <bob@redivi.com>
date Fri, 26 May 2006 14:23:21 +0000
parents 5213b6065197
children a4e433c136da
line wrap: on
line diff
--- a/Modules/_struct.c	Fri May 26 14:07:23 2006 +0000
+++ b/Modules/_struct.c	Fri May 26 14:23:21 2006 +0000
@@ -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);