libs: rv64: Fix _calc_imm() in arch_elf.c

This commit is contained in:
Masayuki Ishikawa 2020-06-25 14:54:27 +09:00 committed by Xiang Xiao
parent 701100f6f9
commit edd3dd3168
1 changed files with 1 additions and 1 deletions

View File

@ -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--;
}