flash: nor: use 'ULL' suffix for long constants
commit6e4000df9e37ea7eb857c3dcd707057d47a5d0ca
authorAntonio Borneo <borneo.antonio@gmail.com>
Sat, 8 Apr 2023 21:50:00 +0000 (8 23:50 +0200)
committerAntonio Borneo <borneo.antonio@gmail.com>
Fri, 5 May 2023 22:08:01 +0000 (5 22:08 +0000)
treeae9455699e673c2c213fc54e5a98842294faa27b
parent07e1ebcc12cdc7e6aba4db2e33aba79d0461f994
flash: nor: use 'ULL' suffix for long constants

On 32 bit hosts, gcc should consider constants without suffix as
32 bits values. Adding a cast to convert it to 64 bits should not
be enough.

Use the suffix 'ULL' to guarantee it is a 64 bit.

Detected through 'sparse' tool.

Change-Id: If6be35bd3cbbc7c3a83e0da1407e611f07ff6e06
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/7593
Tested-by: jenkins
src/flash/nor/at91samd.c
src/flash/nor/atsame5.c