diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2016-10-26 21:00:32 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2016-10-26 21:00:32 -0700 |
commit | 992e3ca99dc73b3dbbdf7a9bfda471df29add006 (patch) | |
tree | 0bade4e19b5ed13104c290ccb8ac20d7fb7369b9 /lib.c | |
parent | b766bf96cdd1d3b5065308755c675ad2d5016f56 (diff) | |
download | txr-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |