From 445efa96027c6a1fb0b8a1e44a620942ae67d61b Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Wed, 14 May 1997 15:30:32 +0000 Subject: Add a cast to a malloc to shut up the DEC Unix compiler. --- Modules/regexpr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; \ -- cgit v0.12