diff Python/exceptions.c @ 37597:2b2e9c388fbb legacy-trunk

low-hanging fruit in Python/ - g++ still hates all the enum_kind declarations in Python/Python-ast.c. Not sure what to do about those.
author Anthony Baxter <anthonybaxter@gmail.com>
date Tue, 11 Apr 2006 07:43:46 +0000
parents 9eb24f92a784
children 9b22d8b7bcaa
line wrap: on
line diff
--- a/Python/exceptions.c	Tue Apr 11 07:42:36 2006 +0000
+++ b/Python/exceptions.c	Tue Apr 11 07:43:46 2006 +0000
@@ -893,7 +893,7 @@
 	    if (have_filename)
 		bufsize += PyString_GET_SIZE(filename);
 
-	    buffer = PyMem_MALLOC(bufsize);
+	    buffer = (char *)PyMem_MALLOC(bufsize);
 	    if (buffer != NULL) {
 		if (have_filename && have_lineno)
 		    PyOS_snprintf(buffer, bufsize, "%s (%s, line %ld)",