Skip to content

Commit 0af4d25

Browse files
committed
Guarantee 64-bit types
``` machines/m68k/machine.c: In function 'gen_dc': machines/m68k/machine.c:3503:7: warning: right shift count >= width of type vumax=zumand(zumrshift(vumax,ul2zum(32UL)),ul2zum(0xffffffff)); ^ ``` With -std=c9x/gnu9x/c99 -m32, `long` will be a 32-bit type. Specify `long long` to guarantee 64-bit size and get rid of warnings like the above, and possible errors in the generated code.
1 parent 0bab2e9 commit 0af4d25

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

toolchain-m68k

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ def build_vbcc():
117117
'n', 'y', 'unsigned short',
118118
'n', 'y', 'signed int',
119119
'n', 'y', 'unsigned int',
120-
'n', 'y', 'signed long',
121-
'n', 'y', 'unsigned long',
120+
'n', 'y', 'signed long long',
121+
'n', 'y', 'unsigned long long',
122122
'n', 'y', 'float',
123123
'n', 'y', 'double')
124124
make('vbcc', TARGET='m68k', ETCDIR='\\"{target}/etc/\\"', CONFIG=config)

0 commit comments

Comments
 (0)