fix warnings

This commit is contained in:
AlexandreRouma
2024-01-29 01:40:20 +01:00
parent f541328e5c
commit ff23d7e43f
2 changed files with 4 additions and 4 deletions

View File

@ -45,7 +45,7 @@ uint8_t *history_buffer_get_slice(history_buffer *buf) { return buf->history[buf
shift_register_t history_buffer_search(history_buffer *buf, const distance_t *distances,
unsigned int search_every) {
shift_register_t bestpath;
shift_register_t bestpath = 0;
distance_t leasterror = USHRT_MAX;
// search for a state with the least error
for (shift_register_t state = 0; state < buf->num_states; state += search_every) {