summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2009-11-17 14:31:06 -0800
committerKaz Kylheku <kaz@kylheku.com>2009-11-17 14:31:06 -0800
commit4ce9806f4b5fd1d678e7451c11268460ef518df5 (patch)
treea81700515c4b72b23d7ed6b67390539bed8d0351
parentf99734091a69915ef54176e3eeb2e9468294d0ad (diff)
downloadtxr-4ce9806f4b5fd1d678e7451c11268460ef518df5.tar.gz
txr-4ce9806f4b5fd1d678e7451c11268460ef518df5.tar.bz2
txr-4ce9806f4b5fd1d678e7451c11268460ef518df5.zip
* lib.c (chrp): Fix broken is_chr(num) call.
-rw-r--r--ChangeLog4
-rw-r--r--lib.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 3dd611a7..2a2829d3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2009-11-17 Kaz Kylheku <kkylheku@gmail.com>
+ * lib.c (chrp): Fix broken is_chr(num) call.
+
+2009-11-17 Kaz Kylheku <kkylheku@gmail.com>
+
* regex.c (nfa_all_states, nfa_closure): visited parameter
should be unsigned.
diff --git a/lib.c b/lib.c
index e119ed82..3d5cbf19 100644
--- a/lib.c
+++ b/lib.c
@@ -1006,7 +1006,7 @@ obj_t *chr(wchar_t ch)
obj_t *chrp(obj_t *chr)
{
- return (is_chr(num)) ? t : nil;
+ return (is_chr(chr)) ? t : nil;
}
wchar_t c_chr(obj_t *chr)