From 580f8bf8eece137f2262686df60f482f037f4dd0 Mon Sep 17 00:00:00 2001 From: David Volovskiy Date: Sat, 17 Aug 2024 06:33:14 -0400 Subject: [PATCH] bugfix on iterating to previous position --- movement/watch_faces/complication/wordle_face.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/movement/watch_faces/complication/wordle_face.c b/movement/watch_faces/complication/wordle_face.c index 1d40252c..98da99cf 100644 --- a/movement/watch_faces/complication/wordle_face.c +++ b/movement/watch_faces/complication/wordle_face.c @@ -98,7 +98,7 @@ static uint8_t get_next_pos(uint8_t curr_pos, WordleLetterResult *word_elements_ static uint8_t get_prev_pos(uint8_t curr_pos, WordleLetterResult *word_elements_result) { if (curr_pos == 0) return 0; - for (size_t pos = curr_pos-1; pos > 0; pos--) { + for (int8_t pos = curr_pos-1; pos >= 0; pos--) { if (word_elements_result[pos] != WORDLE_LETTER_CORRECT) return pos; }