diff options
| author | Jörg Hohensohn <hohensoh@rockbox.org> | 2004-01-30 23:55:02 +0000 |
|---|---|---|
| committer | Jörg Hohensohn <hohensoh@rockbox.org> | 2004-01-30 23:55:02 +0000 |
| commit | 3dc1063dcc277c844264fef97ad2a97c24c923f6 (patch) | |
| tree | a9ded64fa6b7fa9ebedfc76e0960e1d3f8450c81 | |
| parent | 73681ff4ef9d31dce166497e441487523545f19f (diff) | |
| download | rockbox-3dc1063dcc277c844264fef97ad2a97c24c923f6.zip rockbox-3dc1063dcc277c844264fef97ad2a97c24c923f6.tar.gz rockbox-3dc1063dcc277c844264fef97ad2a97c24c923f6.tar.bz2 rockbox-3dc1063dcc277c844264fef97ad2a97c24c923f6.tar.xz | |
hope I killed that warning now
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4288 a1c6a512-1295-4272-9138-f99709370657
| -rw-r--r-- | firmware/backlight.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/backlight.c b/firmware/backlight.c index 1e8ef3d..edf8ff3 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 */ |