summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2014-01-29 21:21:27 -0800
committerKaz Kylheku <kaz@kylheku.com>2014-01-29 21:21:27 -0800
commit90665e91cee93000f5bf228d4600d0139552839f (patch)
tree5d21a03df0342444eccee0def063b858ae60d28d
parentff17df5e47559aa87ffd828c6126a63165805ad2 (diff)
downloadtxr-90665e91cee93000f5bf228d4600d0139552839f.tar.gz
txr-90665e91cee93000f5bf228d4600d0139552839f.tar.bz2
txr-90665e91cee93000f5bf228d4600d0139552839f.zip
* regex.c (match_regex_right): Fix not returning value.
-rw-r--r--ChangeLog4
-rw-r--r--regex.c2
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 903c1045..07b189d3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2014-01-29 Kaz Kylheku <kaz@kylheku.com>
+ * regex.c (match_regex_right): Fix not returning value.
+
+2014-01-29 Kaz Kylheku <kaz@kylheku.com>
+
Default argument initializer scoping rule change, allowing
things like (defun foo (s : (l (length s))) ...).
Default arguments can be initialized by expressions that
diff --git a/regex.c b/regex.c
index 090846b1..7632faee 100644
--- a/regex.c
+++ b/regex.c
@@ -1873,6 +1873,8 @@ val match_regex_right(val str, val regex, val end)
pos = plus(pos, one);
}
+
+ return nil;
}
val regsub(val regex, val repl, val str)