Skip to content

Commit c50d431

Browse files
committed
Use bare Py_LIST_GET_ITEM
1 parent c158cf6 commit c50d431

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cachemap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ static PyObject *CacheMap_NextEvictKey(CtsCacheMap *self) {
259259
if ((dict_len % CacheMap_BUCKET_NUM)) {
260260
pos = CacheMap_BUCKET_NUM * b_size +
261261
(dict_len - CacheMap_BUCKET_NUM * b_size) / 2;
262-
wrapper = PyDict_GetItem(self->dict, PyList_GetItem(keylist, pos));
262+
wrapper = PyDict_GetItem(self->dict, PyList_GET_ITEM(keylist, pos));
263263
weight = CacheEntry_GetWeight((CtsCacheMapEntry *)wrapper, now);
264264
if (min == 0 || weight < min) {
265265
rv = key;

0 commit comments

Comments
 (0)