From e809c80f0703f043a8e44dbc826fb6c5b7e97bb6 Mon Sep 17 00:00:00 2001 From: "Alan C. Assis" Date: Tue, 10 Aug 2021 10:51:36 -0300 Subject: [PATCH] mtd/smartfs: Fix implicit conversion from 'int' to 'short' --- drivers/mtd/smart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/smart.c b/drivers/mtd/smart.c index f30f41e58c..5b02586753 100644 --- a/drivers/mtd/smart.c +++ b/drivers/mtd/smart.c @@ -1938,7 +1938,7 @@ static int smart_scan(FAR struct smart_struct_s *dev) char devname[22]; FAR struct smart_multiroot_device_s *rootdirdev; #endif - static const short sizetbl[8] = + static const uint16_t sizetbl[8] = { CONFIG_MTD_SMART_SECTOR_SIZE, 512, 1024, 4096, 2048, 8192, 16384, 32768