summaryrefslogtreecommitdiffstats
path: root/regex.c
diff options
context:
space:
mode:
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)