Commit 2b859296 authored by marko's avatar marko

branches/zip: buf_page_peek_if_too_old(): Silence a compiler warning

that was introduced in r5779 on 32-bit systems.
parent 3952b42b
...@@ -84,7 +84,7 @@ buf_page_peek_if_too_old( ...@@ -84,7 +84,7 @@ buf_page_peek_if_too_old(
return(FALSE); return(FALSE);
} else { } else {
/* FIXME: bpage->freed_page_clock is 31 bits */ /* FIXME: bpage->freed_page_clock is 31 bits */
return((buf_pool->freed_page_clock & ((1 << 31) - 1)) return((buf_pool->freed_page_clock & ((1UL << 31) - 1))
> bpage->freed_page_clock > bpage->freed_page_clock
+ (buf_pool->curr_size + (buf_pool->curr_size
* (BUF_LRU_OLD_RATIO_DIV - buf_LRU_old_ratio) * (BUF_LRU_OLD_RATIO_DIV - buf_LRU_old_ratio)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment