diff Python/exceptions.c @ 14068:03401af36b5c legacy-trunk

Remove a couple of warnings turned up by "gcc -Wall".
author Fred Drake <fdrake@acm.org>
date Fri, 18 Aug 2000 19:53:25 +0000
parents e8301612e7d8
children d467d184b429 8aa947e1eee8
line wrap: on
line diff
--- a/Python/exceptions.c	Fri Aug 18 19:30:40 2000 +0000
+++ b/Python/exceptions.c	Fri Aug 18 19:53:25 2000 +0000
@@ -793,7 +793,7 @@
 	    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 @@
 			    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));