From 3dc1063dcc277c844264fef97ad2a97c24c923f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Hohensohn?= Date: Fri, 30 Jan 2004 23:55:02 +0000 Subject: [PATCH] hope I killed that warning now git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4288 a1c6a512-1295-4272-9138-f99709370657 --- firmware/backlight.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/backlight.c b/firmware/backlight.c index 1e8ef3d3ab..edf8ff3744 100644 --- a/firmware/backlight.c +++ b/firmware/backlight.c @@ -128,7 +128,7 @@ int backlight_get_timeout(void) void backlight_set_timeout(int index) { - if(index >= sizeof(backlight_timeout_value) || index < 0) + if((unsigned)index >= sizeof(backlight_timeout_value)) /* if given a weird value, use 0 */ index=0; backlight_timeout = index; /* index in the backlight_timeout_value table */