From cd15fa4abd2e5989fcf61557957e1fe9b27a4e17 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 12 Sep 2002 14:43:41 +0000 Subject: Fix warnings on 64-bit platforms about casts from pointers to ints. Two of these were real bugs. --- Objects/stringobject.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Objects/stringobject.c') diff --git a/Objects/stringobject.c b/Objects/stringobject.c index c090e9b2d6..92adb490cc 100644 --- a/Objects/stringobject.c +++ b/Objects/stringobject.c @@ -3883,7 +3883,8 @@ PyString_Format(PyObject *format, PyObject *args) PyErr_Format(PyExc_ValueError, "unsupported format character '%c' (0x%x) " "at index %i", - c, c, fmt - 1 - PyString_AsString(format)); + c, c, + (int)(fmt - 1 - PyString_AsString(format))); goto error; } if (sign) { -- cgit v1.2.1