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;