diff options
author | Armin Rigo <arigo@tunes.org> | 2004-08-07 19:27:39 (GMT) |
---|---|---|
committer | Armin Rigo <arigo@tunes.org> | 2004-08-07 19:27:39 (GMT) |
commit | 79f7ad228b0f7d5c4609e790d9a06345f36a5aaf (patch) | |
tree | 9e9cea44073710450145678b77997bb8e23fb022 /Objects | |
parent | 4336eda88640695b23790e4f52de9ee92c7fee73 (diff) | |
download | cpython-79f7ad228b0f7d5c4609e790d9a06345f36a5aaf.zip cpython-79f7ad228b0f7d5c4609e790d9a06345f36a5aaf.tar.gz cpython-79f7ad228b0f7d5c4609e790d9a06345f36a5aaf.tar.bz2 |
Fixed some compiler warnings.
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/stringobject.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/stringobject.c b/Objects/stringobject.c index f29929b..e29ed48 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; } |