Fix VS2013 warnings about integer conversions

This commit is contained in:
Vinnie Falco committed 2014-04-17 13:06:06 -07:00
1 parent fdfcebd1cb
commit df3f5e442d
13 files changed
+34 -31

No files matched your search

+2 -1
View File
@@ -183,7 +183,8 @@ void SpookyHash::Hash128(
remainder = (length - ((const uint8 *)end-(const uint8 *)message));
memcpy(buf, end, remainder);
memset(((uint8 *)buf)+remainder, 0, sc_blockSize-remainder);
((uint8 *)buf)[sc_blockSize-1] = remainder;
((uint8 *)buf)[sc_blockSize-1] =
static_cast<uint8>(remainder);
// do some final mixing
End(buf, h0,h1,h2,h3,h4,h5,h6,h7,h8,h9,h10,h11);