summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/memview.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/memview.c b/src/memview.c
index 3804559..eab14c6 100644
--- a/src/memview.c
+++ b/src/memview.c
@@ -760,7 +760,7 @@ goto_offset(void *arg)
char *invalid;
const bool is_plus = (v[0] == '+');
const bool is_minus = (v[0] == '-');
- const size_t ret = hexdecstrtoull(v + (is_plus | is_minus), &invalid);
+ const size_t ret = hexdecstrtoull(v + (is_plus || is_minus), &invalid);
if (*invalid != 0) {
error("invalid offset `%s`", v);