summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib.c b/lib.c
index 671e13ac..42f6cb04 100644
--- a/lib.c
+++ b/lib.c
@@ -2819,7 +2819,7 @@ static val lazy_sub_str(val lstr, val from, val to)
val len = nil;
val len_pfx = length_str(lstr->ls.prefix);
- if (from == nil) {
+ if (null_or_missing_p(from)) {
from = zero;
} else if (from == t) {
return null_string;
@@ -2838,7 +2838,7 @@ static val lazy_sub_str(val lstr, val from, val to)
}
}
- if (to == nil || to == t) {
+ if (null_or_missing_p(to) || to == t) {
to = t;
} else {
if (lt(to, zero)) {