libs: rv64: Fix _calc_imm() in arch_elf.c
This commit is contained in:
parent
701100f6f9
commit
edd3dd3168
|
@ -150,7 +150,7 @@ static void _calc_imm(long offset, long *imm_hi, long *imm_lo)
|
|||
{
|
||||
hi++;
|
||||
}
|
||||
else if (r <= -2048)
|
||||
else if (r < -2048)
|
||||
{
|
||||
hi--;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue