diff options
author | Fred Drake <fdrake@acm.org> | 2000-08-18 19:53:25 +0000 |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2000-08-18 19:53:25 +0000 |
commit | 02ac8bf163bd16d4f026884faa270b83b0e24925 (patch) | |
tree | f0bb3a9c7cb822905f7de347d97761ac239ccd78 /Python/exceptions.c | |
parent | 091c3bbd16860a3d4bc8740c2c342d0efc130c7d (diff) | |
download | cpython-02ac8bf163bd16d4f026884faa270b83b0e24925.tar.gz |
Remove a couple of warnings turned up by "gcc -Wall".
Diffstat (limited to 'Python/exceptions.c')
-rw-r--r-- | Python/exceptions.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/exceptions.c b/Python/exceptions.c index b441f51784..6d6291ce32 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)); |