Shut up another sign warning.

This commit is contained in:
Alcaro 2015-09-06 16:18:35 +02:00
parent c62e4aa761
commit a5ee1cb22d
2 changed files with 6 additions and 6 deletions

View File

@ -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)
{

View File

@ -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);