From: Guido van Rossum Date: Wed, 14 May 1997 15:30:32 +0000 (+0000) Subject: Add a cast to a malloc to shut up the DEC Unix compiler. X-Git-Tag: v1.5a2~21 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=445efa96027c6a1fb0b8a1e44a620942ae67d61b;p=thirdparty%2FPython%2Fcpython.git Add a cast to a malloc to shut up the DEC Unix compiler. --- diff --git a/Modules/regexpr.c b/Modules/regexpr.c index 115f327b86f2..90bff874ab48 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; \