mtd/smartfs: Fix implicit conversion from 'int' to 'short'

This commit is contained in:
Alan C. Assis 2021-08-10 10:51:36 -03:00 committed by Xiang Xiao
parent 3309b8eee6
commit e809c80f07

View File

@ -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