summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTakayuki Matsuoka <t-mat@users.noreply.github.com>2021-05-27 08:24:00 (GMT)
committerTakayuki Matsuoka <t-mat@users.noreply.github.com>2021-05-27 12:12:39 (GMT)
commit4a9bbc2480b16c2d6eaed00612884010774fbe40 (patch)
tree52188057be6d4ee289898893c66fd44753d4e36e
parent7a966c1511816b53ac93aa2f2a2ff97e036a4a60 (diff)
downloadlz4-4a9bbc2480b16c2d6eaed00612884010774fbe40.zip
lz4-4a9bbc2480b16c2d6eaed00612884010774fbe40.tar.gz
lz4-4a9bbc2480b16c2d6eaed00612884010774fbe40.tar.bz2
Fix -Wshorten-64-to-32 warning
-rw-r--r--examples/dictionaryRandomAccess.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/dictionaryRandomAccess.c b/examples/dictionaryRandomAccess.c
index ecb3b2d..f7d1b67 100644
--- a/examples/dictionaryRandomAccess.c
+++ b/examples/dictionaryRandomAccess.c
@@ -97,7 +97,7 @@ void test_compress(FILE* outFp, FILE* inpFp, void *dict, int dictSize)
while (ptr != offsetsEnd) {
write_int(outFp, *ptr++);
}
- write_int(outFp, offsetsEnd - offsets);
+ write_int(outFp, (int) (offsetsEnd - offsets));
}
}