block_cache.cpp: fix gcc warnings
Since 'maxAccessed' and 'count' is int32, use INT32_MAX instead of LONG_MAX. Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk> Ticket: #12833
This commit is contained in:
parent
51bfb05693
commit
46b40482a6
@ -124,8 +124,8 @@ struct block_cache {
|
|||||||
|
|
||||||
void Free(void* buffer);
|
void Free(void* buffer);
|
||||||
void* Allocate();
|
void* Allocate();
|
||||||
void RemoveUnusedBlocks(int32_t maxAccessed = LONG_MAX,
|
void RemoveUnusedBlocks(int32_t maxAccessed = INT32_MAX,
|
||||||
int32_t count = LONG_MAX);
|
int32_t count = INT32_MAX);
|
||||||
void RemoveBlock(cached_block* block);
|
void RemoveBlock(cached_block* block);
|
||||||
void DiscardBlock(cached_block* block);
|
void DiscardBlock(cached_block* block);
|
||||||
void FreeBlock(cached_block* block);
|
void FreeBlock(cached_block* block);
|
||||||
|
Loading…
Reference in New Issue
Block a user