riscv64: Fix printf warning

now that tcc_error also checks arguments.
This commit is contained in:
Michael Matz 2020-05-26 20:16:35 +02:00
parent 3b617fdc53
commit ae14ef5426

View File

@ -158,7 +158,7 @@ static int load_symofs(int r, SValue *sv, int forstore)
sv->c.i = 0;
} else {
if (((unsigned)fc + (1 << 11)) >> 12)
tcc_error("unimp: large addend for global address (0x%llx)", sv->c.i);
tcc_error("unimp: large addend for global address (0x%llx)", (long long)sv->c.i);
greloca(cur_text_section, sv->sym, ind,
R_RISCV_GOT_HI20, 0);
doload = 1;