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:
Murai Takashi 2016-06-26 17:24:27 +09:00 committed by Adrien Destugues
parent 51bfb05693
commit 46b40482a6

View File

@ -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);