Skip to content

Commit a4265c9

Browse files
committed
Let LHD_insert return dummy (not NULL) cache obj ptr
1 parent 06bddc5 commit a4265c9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

libCacheSim/cache/eviction/LHD/LHD_Interface.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ static cache_obj_t *LHD_insert(cache_t *cache, const request_t *req) {
205205
cache->occupied_byte += req->obj_size + cache->obj_md_size;
206206
cache->n_obj += 1;
207207

208-
return NULL;
208+
return reinterpret_cast<cache_obj_t *>(0x1);
209209
}
210210

211211
/**

0 commit comments

Comments
 (0)