all: Add 'U' suffix when using unsigned variables
Add a 'U' suffix to values when computing and comparing against unsigned variables. Signed-off-by: Patrik Flykt <patrik.flykt@intel.com>
This commit is contained in:
parent
caebf204c6
commit
24d71431e9
559 changed files with 2331 additions and 2328 deletions
|
@ -77,11 +77,11 @@ static int erase_sector(struct device *dev, u32_t sector)
|
|||
#if defined(FLASH_OPTCR_nDBANK) && FLASH_SECTOR_TOTAL == 24
|
||||
#if CONFIG_FLASH_SIZE == 2048
|
||||
if (sector > 11) {
|
||||
sector += 4;
|
||||
sector += 4U;
|
||||
}
|
||||
#elif CONFIG_FLASH_SIZE == 1024
|
||||
if (sector > 7) {
|
||||
sector += 8;
|
||||
sector += 8U;
|
||||
}
|
||||
#endif /* CONFIG_FLASH_SIZE */
|
||||
#endif /* defined(FLASH_OPTCR_nDBANK) && FLASH_SECTOR_TOTAL == 24 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue