diff Python/pystrtod.c @ 38481:3d1a99b39fca legacy-trunk

Fix compiler warning.
author Georg Brandl <georg@python.org>
date Mon, 29 May 2006 14:33:55 +0000
parents 9b001ebeaa5e
children 0e8a94ba2106
line wrap: on
line diff
--- a/Python/pystrtod.c	Mon May 29 14:28:05 2006 +0000
+++ b/Python/pystrtod.c	Mon May 29 14:33:55 2006 +0000
@@ -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;
 		}