summaryrefslogtreecommitdiffstats
path: root/lz4hc_encoder.h
diff options
context:
space:
mode:
Diffstat (limited to 'lz4hc_encoder.h')
-rw-r--r--lz4hc_encoder.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lz4hc_encoder.h b/lz4hc_encoder.h
index edee93c..b59bef3 100644
--- a/lz4hc_encoder.h
+++ b/lz4hc_encoder.h
@@ -97,7 +97,7 @@ forceinline static int ENCODE_SEQUENCE_NAME (
if (*op + (1 + LASTLITERALS) + (length>>8) > oend) return 1; // Check output limit
#endif
if (length>=(int)ML_MASK) { *token+=ML_MASK; length-=ML_MASK; for(; length > 509 ; length-=510) { *(*op)++ = 255; *(*op)++ = 255; } if (length > 254) { length-=255; *(*op)++ = 255; } *(*op)++ = (BYTE)length; }
- else *token += (BYTE)length;
+ else *token += (BYTE)(length);
// Prepare next loop
*ip += matchLength;