From f3d60aea34de60c4371c04fa1b8482ca71a64b53 Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Fri, 29 Aug 2014 23:36:11 -0400 Subject: Hopefully fix most of the errors and warnings from the last push Change-Id: I1a466b2d55f120796910039a0296ca324c58e891 --- firmware/storage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'firmware/storage.c') 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; -- cgit v1.1