Fix MSVC "value may be truncated" warnings. (by pkasting@)

git-svn-id: https://cld2.googlecode.com/svn/trunk@168 b252ecd4-b096-bf77-eb8e-91563289f87e
This commit is contained in:
hajimehoshi@google.com
2014-09-17 07:11:37 +00:00
parent bb5c092e8c
commit c9f9d40322
5 changed files with 11 additions and 10 deletions

View File

@@ -392,7 +392,7 @@ inline void OctaFPJustHash(uint64 longwordhash,
uint32* subscr, uint32* hashkey) {
uint32 temp = (longwordhash + (longwordhash >> 12)) & (bucketcount - 1);
*subscr = temp;
temp = longwordhash >> 4;
temp = static_cast<uint32>(longwordhash >> 4);
*hashkey = temp & keymask;
}