summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJari Vetoniemi <mailroxas@gmail.com>2019-02-28 10:54:49 +0200
committerJari Vetoniemi <mailroxas@gmail.com>2019-02-28 10:54:49 +0200
commit596622998378d41fce76d4fa375fdce2a19bbc5a (patch)
tree2290a8969f647e1389c0e7134e333a7f463b51ef
parenteb76e97ddd4d8e87b54c1dadc88a899838c65e06 (diff)
memview: s/|/||/
-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);