mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-11-25 08:37:38 +01:00
ppc: fix inverted check
This commit is contained in:
parent
7a7833ee0a
commit
f819f1b87c
1 changed files with 2 additions and 2 deletions
|
@ -74,7 +74,7 @@ fetch16 (unw_addr_space_t as, unw_accessors_t *a,
|
|||
unw_word_t val, aligned_addr = *addr & -WSIZE, off = *addr - aligned_addr;
|
||||
int ret;
|
||||
|
||||
if ((off & 0x1) == 0)
|
||||
if ((off & 0x1) != 0)
|
||||
return -UNW_EINVAL;
|
||||
|
||||
*addr += 2;
|
||||
|
@ -97,7 +97,7 @@ fetch32 (unw_addr_space_t as, unw_accessors_t *a,
|
|||
unw_word_t val, aligned_addr = *addr & -WSIZE, off = *addr - aligned_addr;
|
||||
int ret;
|
||||
|
||||
if ((off & 0x3) == 0)
|
||||
if ((off & 0x3) != 0)
|
||||
return -UNW_EINVAL;
|
||||
|
||||
*addr += 4;
|
||||
|
|
Loading…
Reference in a new issue