summaryrefslogtreecommitdiffstats
path: root/Modules/regexpr.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/regexpr.c')
-rw-r--r--Modules/regexpr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/regexpr.c b/Modules/regexpr.c
index 115f327..90bff87 100644
--- a/Modules/regexpr.c
+++ b/Modules/regexpr.c
@@ -177,7 +177,7 @@ if (stack.index == STACK_PAGE_SIZE) \
{ \
if (stack.current->next == NULL) \
{ \
- stack.current->next = malloc(sizeof(item_page_t)); \
+ stack.current->next = (item_page_t *)malloc(sizeof(item_page_t)); \
if (stack.current->next == NULL) \
on_error; \
stack.current->next->prev = stack.current; \