Skip to content

Commit 13ff2de

Browse files
author
arigo
committed
Fixed some compiler warnings.
git-svn-id: http://svn.python.org/projects/python/trunk@36886 6015fed2-1504-0410-9fe1-9d1591cc4771
1 parent 8d09c51 commit 13ff2de

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Objects/stringobject.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4334,13 +4334,13 @@ PyString_InternInPlace(PyObject **p)
43344334
return;
43354335
}
43364336

4337-
if (PyDict_SetItem(interned, s, s) < 0) {
4337+
if (PyDict_SetItem(interned, (PyObject *)s, (PyObject *)s) < 0) {
43384338
PyErr_Clear();
43394339
return;
43404340
}
43414341
/* The two references in interned are not counted by refcnt.
43424342
The string deallocator will take care of this */
4343-
(*p)->ob_refcnt -= 2;
4343+
s->ob_refcnt -= 2;
43444344
PyString_CHECK_INTERNED(s) = SSTATE_INTERNED_MORTAL;
43454345
}
43464346

0 commit comments

Comments
 (0)