Remove unnecessary abs().

macbuild
Tim Newsome 2017-09-18 14:35:47 -07:00
parent 0abd94b50c
commit ed9a04bde9
1 changed files with 1 additions and 1 deletions

View File

@ -478,7 +478,7 @@ riscv_addr_t riscv_program_gah(struct riscv_program *p, riscv_addr_t addr)
riscv_addr_t riscv_program_gal(struct riscv_program *p, riscv_addr_t addr)
{
return ((addr > 0) ? 1 : 0) * (abs(addr) & 0x7FF);
return ((addr > 0) ? 1 : 0) * (addr & 0x7FF);
}
int riscv_program_lah(struct riscv_program *p, enum gdb_regno d, riscv_addr_t addr)