diff options
Diffstat (limited to 'firmware/storage.c')
| -rw-r--r-- | firmware/storage.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/storage.c b/firmware/storage.c index 7ef7428..e0b491a 100644 --- a/firmware/storage.c +++ b/firmware/storage.c @@ -192,7 +192,7 @@ int storage_num_drives(void) int storage_driver_type(int drive) { - if (drive >= num_drives) + if ((unsigned int)drive >= num_drives) return -1; unsigned int bit = (storage_drivers[drive] & DRIVER_MASK)>>DRIVER_OFFSET; |