1
0
Fork 0
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:
Paul Pluzhnikov 2017-04-05 12:00:01 -07:00 committed by Dave Watson
parent 7a7833ee0a
commit f819f1b87c

View file

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