From 200b2960d5a5d0fe76d34bb826c236c7c2941563 Mon Sep 17 00:00:00 2001 From: Yann Collet Date: Sun, 6 May 2018 18:26:14 -0700 Subject: fixed minor conversion warning --- lib/lz4hc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/lz4hc.c b/lib/lz4hc.c index 059c4b5..b89983f 100644 --- a/lib/lz4hc.c +++ b/lib/lz4hc.c @@ -327,7 +327,8 @@ LZ4HC_InsertAndGetWiderMatch ( if (lookBackLength==0) { /* no back possible */ size_t const maxML = MIN(currentSegmentLength, srcPatternLength); if ((size_t)longest < maxML) { - longest = maxML; + assert(maxML < 2 GB); + longest = (int)maxML; *matchpos = base + matchIndex; /* virtual pos, relative to ip, to retrieve offset */ *startpos = ip; } -- cgit v0.12