]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Add a cast to a malloc to shut up the DEC Unix compiler.
authorGuido van Rossum <guido@python.org>
Wed, 14 May 1997 15:30:32 +0000 (15:30 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 14 May 1997 15:30:32 +0000 (15:30 +0000)
Modules/regexpr.c

index 115f327b86f2a14b18dba165ed02b10d1b77bb57..90bff874ab48cb704772e6f6e5044f2e87c4e084 100644 (file)
@@ -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; \