Cleanup for GCC-4.x
[oweals/u-boot.git] / board / icu862 / flash.c
index 6315bd95b1193a6a9317203c4e2b0d724271b03f..ca5bcf31af5c01607c69221f82c27a29765f0f88 100644 (file)
@@ -251,7 +251,7 @@ static ulong flash_get_size (vu_long *addr, flash_info_t *info)
 
        value = addr[1];                        /* device ID            */
 
-       switch (value) {
+       switch ((unsigned long)value) {
        case AMD_ID_F040B:
                info->flash_id += FLASH_AM040;
                info->sector_count = 8;