summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2016-10-26 21:00:32 -0700
committerKaz Kylheku <kaz@kylheku.com>2016-10-26 21:00:32 -0700
commit9a8c8d552e2b0841dc10d492522072b3b296b149 (patch)
tree0bade4e19b5ed13104c290ccb8ac20d7fb7369b9
parent6e997a72646772a6b7fecdaf0bf1f2d2eb578496 (diff)
downloadtxr-9a8c8d552e2b0841dc10d492522072b3b296b149.tar.gz
txr-9a8c8d552e2b0841dc10d492522072b3b296b149.tar.bz2
txr-9a8c8d552e2b0841dc10d492522072b3b296b149.zip
Don't bother with numeq comparison in tok_where.
* lib.c (tok_where): Just compare match_end == match_start.
-rw-r--r--lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib.c b/lib.c
index fb50af57..ab07ed10 100644
--- a/lib.c
+++ b/lib.c
@@ -4060,7 +4060,7 @@ val tok_where(val str, val tok_regex)
pos = match_end;
- if (numeq(match_end, match_start))
+ if (match_end == match_start)
pos = plus(pos, one);
continue;
}