summaryrefslogtreecommitdiffstats
path: root/lib/lz4.c
diff options
context:
space:
mode:
authorNick Terrell <terrelln@fb.com>2016-11-04 19:34:28 (GMT)
committerNick Terrell <terrelln@fb.com>2016-11-04 19:34:28 (GMT)
commitf30c56c08315250cf4263b13ab4bc83e482f581e (patch)
treeb1de1b10c7cc734a87b2d499a6f4ebe49162f695 /lib/lz4.c
parent374090c7a760a839f2ee1701620d834d1d6ae724 (diff)
downloadlz4-f30c56c08315250cf4263b13ab4bc83e482f581e.zip
lz4-f30c56c08315250cf4263b13ab4bc83e482f581e.tar.gz
lz4-f30c56c08315250cf4263b13ab4bc83e482f581e.tar.bz2
Quiet gcc-4.6.3 narrowing warning
Diffstat (limited to 'lib/lz4.c')
-rw-r--r--lib/lz4.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/lz4.c b/lib/lz4.c
index b935b76..6db4c0b 100644
--- a/lib/lz4.c
+++ b/lib/lz4.c
@@ -426,9 +426,9 @@ static U32 LZ4_hashSequence64(U64 sequence, tableType_t const tableType)
static const U64 prime8bytes = 11400714785074694791ULL;
const U32 hashLog = (tableType == byU16) ? LZ4_HASHLOG+1 : LZ4_HASHLOG;
if (LZ4_isLittleEndian())
- return ((sequence << 24) * prime5bytes) >> (64 - hashLog);
+ return (U32)(((sequence << 24) * prime5bytes) >> (64 - hashLog));
else
- return ((sequence >> 24) * prime8bytes) >> (64 - hashLog);
+ return (U32)(((sequence >> 24) * prime8bytes) >> (64 - hashLog));
}
static U32 LZ4_hashSequenceT(size_t sequence, tableType_t const tableType)