summaryrefslogtreecommitdiffstats
path: root/lib.c
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
commit992e3ca99dc73b3dbbdf7a9bfda471df29add006 (patch)
tree0bade4e19b5ed13104c290ccb8ac20d7fb7369b9 /lib.c
parentb766bf96cdd1d3b5065308755c675ad2d5016f56 (diff)
downloadtxr-992e3ca99dc73b3dbbdf7a9bfda471df29add006.tar.gz
txr-992e3ca99dc73b3dbbdf7a9bfda471df29add006.tar.bz2
txr-992e3ca99dc73b3dbbdf7a9bfda471df29add006.zip
Don't bother with numeq comparison in tok_where.
* lib.c (tok_where): Just compare match_end == match_start.
Diffstat (limited to 'lib.c')
-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;
}