block_cache.cpp: fix gcc warnings

Since 'maxAccessed' and 'count' is int32,
use INT32_MAX instead of LONG_MAX.

Signed-off-by: Adrien Destugues <[email protected]>
Ticket: #12833
This commit is contained in:
Murai Takashi
2016-07-10 17:11:33 +02:00
committed by Adrien Destugues
parent 51bfb05693
commit 46b40482a6
+2 -2
View File
@@ -124,8 +124,8 @@ struct block_cache {
void Free(void* buffer);
void* Allocate();
void RemoveUnusedBlocks(int32_t maxAccessed = LONG_MAX,
int32_t count = LONG_MAX);
void RemoveUnusedBlocks(int32_t maxAccessed = INT32_MAX,
int32_t count = INT32_MAX);
void RemoveBlock(cached_block* block);
void DiscardBlock(cached_block* block);
void FreeBlock(cached_block* block);