summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2016-07-19 21:02:37 -0700
committerKaz Kylheku <kaz@kylheku.com>2016-07-19 21:02:37 -0700
commita03592e3327214feed8897d692b6d33d905ec341 (patch)
tree053fbf67250b83632402e3e5154f967d82fa443a
parent088c98ac50008b01c330496afc9310ba00c4af84 (diff)
downloadtxr-a03592e3327214feed8897d692b6d33d905ec341.tar.gz
txr-a03592e3327214feed8897d692b6d33d905ec341.tar.bz2
txr-a03592e3327214feed8897d692b6d33d905ec341.zip
Replace 0 constant with nil.
* lib.c (split_str): Fourth argument of search_regex is Lisp boolean, so nil should be used to specify false.
-rw-r--r--lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib.c b/lib.c
index 9fcbe686..ed885e62 100644
--- a/lib.c
+++ b/lib.c
@@ -3748,7 +3748,7 @@ val split_str(val str, val sep)
val pos = zero;
do {
- cons_bind (new_pos, len, search_regex(str, sep, pos, 0));
+ cons_bind (new_pos, len, search_regex(str, sep, pos, nil));
if (eql(pos, new_pos) && len == zero)
new_pos = plus(new_pos, one);