We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c158cf6 commit c50d431Copy full SHA for c50d431
src/cachemap.c
@@ -259,7 +259,7 @@ static PyObject *CacheMap_NextEvictKey(CtsCacheMap *self) {
259
if ((dict_len % CacheMap_BUCKET_NUM)) {
260
pos = CacheMap_BUCKET_NUM * b_size +
261
(dict_len - CacheMap_BUCKET_NUM * b_size) / 2;
262
- wrapper = PyDict_GetItem(self->dict, PyList_GetItem(keylist, pos));
+ wrapper = PyDict_GetItem(self->dict, PyList_GET_ITEM(keylist, pos));
263
weight = CacheEntry_GetWeight((CtsCacheMapEntry *)wrapper, now);
264
if (min == 0 || weight < min) {
265
rv = key;
0 commit comments