Commit 83a90095 authored by Bradley C. Kuszmaul's avatar Bradley C. Kuszmaul Committed by Yoni Fogel

Make the cast explicit down to 32 bits. Addresses #1308.

git-svn-id: file:///svn/toku/tokudb.1032b@8295 c7de825b-a66e-492c-adef-691d508d4ae1
parent d9272019
......@@ -20,7 +20,7 @@ const u_int32_t __toku_rth_init_size = 521;
static inline u_int32_t toku__rth_hash(toku_rth* rth, TXNID key) {
u_int64_t tmp = (u_int64_t)key;
return tmp % rth->num_buckets;
return (u_int32_t)(tmp % rth->num_buckets);
}
static inline void toku__invalidate_scan(toku_rth* rth) {
......
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