Skip to content

Commit 5a2a2e8

Browse files
committed
review: change int to uint32_t
1 parent 1a92b1d commit 5a2a2e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

others/lru_cache2.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ template <typename K, typename V>
6060
class LRUCache {
6161
CacheNode<K, V> *head; ///< head of the doubly linked list
6262
CacheNode<K, V> *tail; ///< tail of the doubly linked list
63-
int _capacity; ///< maximum capacity of the cache
63+
uint32_t _capacity; ///< maximum capacity of the cache
6464

6565
std::unordered_map<K, CacheNode<K, V> *>
6666
node_map; ///< maps the key to the node address

0 commit comments

Comments
 (0)