Changed to use uint16_t for all counting variable types.
trees.c(431,45): warning C4244: '+=': conversion from 'int' to 'uint16_t', possible loss of data
trees.c(431,45): warning C4244: '+=': conversion from 'int' to 'uint16_t', possible loss of data
int prevlen = -1; /* last emitted length */
int curlen; /* length of current code */
int nextlen = tree[0].Len; /* length of next code */
- int count = 0; /* repeat count of the current code */
- int max_count = 7; /* max repeat count */
- int min_count = 4; /* min repeat count */
+ uint16_t count = 0; /* repeat count of the current code */
+ uint16_t max_count = 7; /* max repeat count */
+ uint16_t min_count = 4; /* min repeat count */
if (nextlen == 0)
max_count = 138, min_count = 3;