diff options
author | Anthony Baxter <anthonybaxter@gmail.com> | 2006-04-11 07:43:46 +0000 |
---|---|---|
committer | Anthony Baxter <anthonybaxter@gmail.com> | 2006-04-11 07:43:46 +0000 |
commit | a863d334aa7c9d81daea4f6b9800e8245779dc44 (patch) | |
tree | a8b7372c51cdf6348dd9acf584a6f3281a3709e0 /Python/exceptions.c | |
parent | a62862120ddc4636f8819b3f3003ea94c5db0d21 (diff) | |
download | cpython-git-a863d334aa7c9d81daea4f6b9800e8245779dc44.tar.gz |
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.
Diffstat (limited to 'Python/exceptions.c')
-rw-r--r-- | Python/exceptions.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/exceptions.c b/Python/exceptions.c index b146c971b9..e5f8f05cfb 100644 --- a/Python/exceptions.c +++ b/Python/exceptions.c @@ -893,7 +893,7 @@ SyntaxError__str__(PyObject *self, PyObject *args) 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)", |