mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-01-30 16:41:05 +08:00
Cast 64-bit switch expressions to (int) to keep OpenWatcom happy
Our size arguments are 64-bit values, but we don't need that range for anywhere where we need a switch. OpenWatcom can't deal with them (sigh), so cast them to (int) for now.
This commit is contained in:
parent
d13f30e08f
commit
4095197f6c
@ -868,7 +868,7 @@ static void elf_out(int32_t segto, const void *data,
|
||||
" segment base references");
|
||||
} else {
|
||||
if (wrt == NO_SEG) {
|
||||
switch (size) {
|
||||
switch ((int)size) {
|
||||
case 2:
|
||||
elf_add_reloc(s, segment, R_X86_64_16);
|
||||
break;
|
||||
@ -896,7 +896,7 @@ static void elf_out(int32_t segto, const void *data,
|
||||
addr = elf_add_gsym_reloc(s, segment, addr,
|
||||
R_X86_64_GOT32, true);
|
||||
} else if (wrt == elf_sym_sect + 1) {
|
||||
switch (size) {
|
||||
switch ((int)size) {
|
||||
case 2:
|
||||
gnu16 = true;
|
||||
addr = elf_add_gsym_reloc(s, segment, addr,
|
||||
|
Loading…
Reference in New Issue
Block a user