[Python-checkins] r46525 - python/trunk/Python/pystrtod.c

georg.brandl python-checkins at python.org
Mon May 29 16:33:56 CEST 2006


Author: georg.brandl
Date: Mon May 29 16:33:55 2006
New Revision: 46525

Modified:
   python/trunk/Python/pystrtod.c
Log:
Fix compiler warning.



Modified: python/trunk/Python/pystrtod.c
==============================================================================
--- python/trunk/Python/pystrtod.c	(original)
+++ python/trunk/Python/pystrtod.c	Mon May 29 16:33:55 2006
@@ -105,7 +105,7 @@
 		copy = (char *)PyMem_MALLOC(end - nptr + 1 + decimal_point_len);
 		if (copy == NULL) {
 			if (endptr)
-				*endptr = nptr;
+				*endptr = (char *)nptr;
 			errno = ENOMEM;
 			return val;
 		}


More information about the Python-checkins mailing list