summaryrefslogtreecommitdiffstats
path: root/Python/exceptions.c
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2000-08-18 19:53:25 (GMT)
committerFred Drake <fdrake@acm.org>2000-08-18 19:53:25 (GMT)
commit04e654a63c012cc321572e6dabbe70550c4f319f (patch)
tree41bfef54ba9e67fc0b622219094a31f5f5826134 /Python/exceptions.c
parentce4dc41b1a2be5b5335bcbc0865b145852a5c0e5 (diff)
downloadcpython-04e654a63c012cc321572e6dabbe70550c4f319f.zip
cpython-04e654a63c012cc321572e6dabbe70550c4f319f.tar.gz
cpython-04e654a63c012cc321572e6dabbe70550c4f319f.tar.bz2
Remove a couple of warnings turned up by "gcc -Wall".
Diffstat (limited to 'Python/exceptions.c')
-rw-r--r--Python/exceptions.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/exceptions.c b/Python/exceptions.c
index b441f51..6d6291c 100644
--- a/Python/exceptions.c
+++ b/Python/exceptions.c
@@ -793,7 +793,7 @@ SyntaxError__str__(PyObject *self, PyObject *args)
buffer = PyMem_Malloc(bufsize);
if (buffer != NULL) {
if (have_filename && have_lineno)
- sprintf(buffer, "%s (%s, line %d)",
+ sprintf(buffer, "%s (%s, line %ld)",
PyString_AS_STRING(str),
my_basename(PyString_AS_STRING(filename)),
PyInt_AsLong(lineno));
@@ -802,7 +802,7 @@ SyntaxError__str__(PyObject *self, PyObject *args)
PyString_AS_STRING(str),
my_basename(PyString_AS_STRING(filename)));
else if (have_lineno)
- sprintf(buffer, "%s (line %d)",
+ sprintf(buffer, "%s (line %ld)",
PyString_AS_STRING(str),
PyInt_AsLong(lineno));