Commit c6011076 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 62807cb0
...@@ -20,7 +20,7 @@ const u_int32_t __toku_rth_init_size = 521; ...@@ -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) { static inline u_int32_t toku__rth_hash(toku_rth* rth, TXNID key) {
u_int64_t tmp = (u_int64_t)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) { 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