From a5ee1cb22daffd940fb7cc9ff60e3bdbe16bbe39 Mon Sep 17 00:00:00 2001 From: Alcaro Date: Sun, 6 Sep 2015 16:18:35 +0200 Subject: [PATCH] Shut up another sign warning. --- menu/menu_animation.c | 8 ++++---- menu/menu_animation.h | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/menu/menu_animation.c b/menu/menu_animation.c index 70a21bcd52..080730ec6e 100644 --- a/menu/menu_animation.c +++ b/menu/menu_animation.c @@ -571,8 +571,8 @@ bool menu_animation_update(menu_animation_t *anim, float dt) return true; } -void menu_animation_ticker_generic(uint64_t idx, int max_width, - int *offset, int *width) +void menu_animation_ticker_generic(uint64_t idx, size_t max_width, + size_t *offset, size_t *width) { int ticker_period, phase, phase_left_stop; int phase_left_moving, phase_right_stop; @@ -620,8 +620,8 @@ void menu_animation_ticker_str(char *s, size_t len, uint64_t idx, const char *str, bool selected) { menu_animation_t *anim = menu_animation_get_ptr(); - int str_len = strlen(str); - int offset = 0; + size_t str_len = strlen(str); + size_t offset = 0; if ((size_t)str_len <= len) { diff --git a/menu/menu_animation.h b/menu/menu_animation.h index cc3910d96c..4ac1d58f23 100644 --- a/menu/menu_animation.h +++ b/menu/menu_animation.h @@ -114,8 +114,8 @@ bool menu_animation_update(menu_animation_t *animation, float dt); void menu_animation_ticker_str(char *s, size_t len, uint64_t tick, const char *str, bool selected); -void menu_animation_ticker_generic(uint64_t idx, int max_width, - int *offset, int *width); +void menu_animation_ticker_generic(uint64_t idx, size_t max_width, + size_t *offset, size_t *width); menu_animation_t *menu_animation_get_ptr(void);