summaryrefslogtreecommitdiffstats
path: root/regex.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2009-12-04 12:35:18 -0800
committerKaz Kylheku <kaz@kylheku.com>2009-12-04 12:35:18 -0800
commitbdfe648ad88513857c3f9ef670ac0cae47bd606c (patch)
tree2b77d74b4827a8ea81259f1a339af86342c7daef /regex.c
parent208f8a44f899460c182da8644a7cd982d18aade9 (diff)
downloadtxr-bdfe648ad88513857c3f9ef670ac0cae47bd606c.tar.gz
txr-bdfe648ad88513857c3f9ef670ac0cae47bd606c.tar.bz2
txr-bdfe648ad88513857c3f9ef670ac0cae47bd606c.zip
Eliminate the void * disease. Generic pointers are of mem_t *
from now on, which is compatible with unsigned char *. No implicit conversion to or from this type, in C or C++.
Diffstat (limited to 'regex.c')
-rw-r--r--regex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/regex.c b/regex.c
index 7fe7e448..3a406873 100644
--- a/regex.c
+++ b/regex.c
@@ -1157,7 +1157,7 @@ val regex_compile(val regex_sexp)
{
nfa_t *pnfa = (nfa_t *) chk_malloc(sizeof *pnfa);
*pnfa = nfa_compile_regex(regex_sexp);
- return cobj(pnfa, regex_s, &regex_obj_ops);
+ return cobj((mem_t *) pnfa, regex_s, &regex_obj_ops);
}
val regexp(val obj)