[Python-checkins] r82006 - python/branches/py3k-cdecimal/Modules/cdecimal/mpdecimal.c
stefan.krah
python-checkins at python.org
Wed Jun 16 00:18:54 CEST 2010
Author: stefan.krah
Date: Wed Jun 16 00:18:54 2010
New Revision: 82006
Log:
Fix typo that did not affect the module. The library should also be
safe on the vast majority of platforms.
Modified:
python/branches/py3k-cdecimal/Modules/cdecimal/mpdecimal.c
Modified: python/branches/py3k-cdecimal/Modules/cdecimal/mpdecimal.c
==============================================================================
--- python/branches/py3k-cdecimal/Modules/cdecimal/mpdecimal.c (original)
+++ python/branches/py3k-cdecimal/Modules/cdecimal/mpdecimal.c Wed Jun 16 00:18:54 2010
@@ -1150,7 +1150,7 @@
uint8_t sign = MPD_POS;
if (a < 0) {
- if (a == INT64_MAX) {
+ if (a == INT64_MIN) {
u = (uint64_t)INT64_MAX + (-(INT64_MIN+INT64_MAX));
}
else {
More information about the Python-checkins
mailing list