mirror of
https://github.com/apache/nuttx.git
synced 2026-05-22 22:20:01 +08:00
libs: rv64: Fix _calc_imm() in arch_elf.c
This commit is contained in:
committed by
Xiang Xiao
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--;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user