diff options
author | Paul Pluzhnikov <ppluzhnikov@google.com> | 2017-04-05 12:00:01 -0700 |
---|---|---|
committer | Dave Watson <davejwatson@fb.com> | 2017-04-05 12:00:21 -0700 |
commit | f819f1b87c77cfff81ccd9b894d38d5bd50dc6fc (patch) | |
tree | 647b3c37270de44f38fad1320435bb5f0e92048d /include | |
parent | 7a7833ee0ac287beba23f4a1f50f23928e2a5427 (diff) | |
download | libunwind-f819f1b87c77cfff81ccd9b894d38d5bd50dc6fc.tar.gz |
ppc: fix inverted check
Diffstat (limited to 'include')
-rw-r--r-- | include/remote.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/remote.h b/include/remote.h index d8daeec7..064d6309 100644 --- a/include/remote.h +++ b/include/remote.h @@ -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; |