summaryrefslogtreecommitdiff
path: root/Objects/stringobject.c
diff options
context:
space:
mode:
authorArmin Rigo <arigo@tunes.org>2004-08-07 19:27:39 +0000
committerArmin Rigo <arigo@tunes.org>2004-08-07 19:27:39 +0000
commit441160fff875c712785c35c0049567fa062e3f31 (patch)
treedc6d5c234c81f843a7ac56e986d01b6136fd583e /Objects/stringobject.c
parent02259d8d492377a04ea7342058186708a44df8d0 (diff)
downloadcpython-441160fff875c712785c35c0049567fa062e3f31.tar.gz
Fixed some compiler warnings.
Diffstat (limited to 'Objects/stringobject.c')
-rw-r--r--Objects/stringobject.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/stringobject.c b/Objects/stringobject.c
index f29929b0ec..e29ed4806f 100644
--- a/Objects/stringobject.c
+++ b/Objects/stringobject.c
@@ -4334,13 +4334,13 @@ PyString_InternInPlace(PyObject **p)
return;
}
- if (PyDict_SetItem(interned, s, s) < 0) {
+ if (PyDict_SetItem(interned, (PyObject *)s, (PyObject *)s) < 0) {
PyErr_Clear();
return;
}
/* The two references in interned are not counted by refcnt.
The string deallocator will take care of this */
- (*p)->ob_refcnt -= 2;
+ s->ob_refcnt -= 2;
PyString_CHECK_INTERNED(s) = SSTATE_INTERNED_MORTAL;
}