Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 79f7ad2

Browse files
committed
Fixed some compiler warnings.
1 parent 4336eda commit 79f7ad2

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)