target: use 'ULL' suffix for long constants
commitea62f8e22adb0c56509dd1999a2be9cf9798b8aa
authorAntonio Borneo <borneo.antonio@gmail.com>
Sat, 8 Apr 2023 23:36:04 +0000 (9 01:36 +0200)
committerAntonio Borneo <borneo.antonio@gmail.com>
Fri, 5 May 2023 22:10:18 +0000 (5 22:10 +0000)
treee565e4ae1d9e84754ef006c92bfb511645d48405
parent314f4c665f746ebec3be69a8e26f0a671cfdcb46
target: use 'ULL' suffix for long constants

On 32 bit hosts, gcc should consider constants without suffix as
32 bits values.

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

Detected through 'sparse' tool.

Change-Id: I205ca986968fef9a536f87492d1f6c80e41829f3
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/7601
Tested-by: jenkins
src/target/aarch64.c
src/target/armv8.c
src/target/lakemont.c
src/target/mips64_pracc.h