summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorNathan Moinvaziri <nathan@solidstatenetworks.com>2020-05-12 09:27:03 -0400
committerHans Kristian Rosbach <hk-github@circlestorm.org>2020-05-30 21:25:18 +0200
commit2447b5ead8d4424e0bd002c187f5b48febda511d (patch)
tree4be02d48264813a452707baa06a5fe9a9de544af /tools
parentd4b5542d6655a0ea98d1b25ace7896bedebba787 (diff)
downloadProject-Tick-2447b5ead8d4424e0bd002c187f5b48febda511d.tar.gz
Project-Tick-2447b5ead8d4424e0bd002c187f5b48febda511d.zip
Fixed casting warning from bi_reverse in maketrees.
maketrees.c(93,58): warning C4244: '=': conversion from 'unsigned int' to 'uint16_ t', possible loss of data
Diffstat (limited to 'tools')
-rw-r--r--tools/maketrees.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/maketrees.c b/tools/maketrees.c
index cb6e146f6e..150e026684 100644
--- a/tools/maketrees.c
+++ b/tools/maketrees.c
@@ -90,7 +90,7 @@ static void tr_static_init(void) {
/* The static distance tree is trivial: */
for (n = 0; n < D_CODES; n++) {
static_dtree[n].Len = 5;
- static_dtree[n].Code = bi_reverse((unsigned)n, 5);
+ static_dtree[n].Code = (uint16_t)bi_reverse((unsigned)n, 5);
}
}