commit | 445efa96027c6a1fb0b8a1e44a620942ae67d61b | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Wed May 14 15:30:32 1997 +0000 |
committer | Guido van Rossum <guido@python.org> | Wed May 14 15:30:32 1997 +0000 |
tree | 59adf5f3b156e0a29f392cd0095d9b16956b8e20 | |
parent | 2ec9031b5589db81026f5fc3a11070002ec4d0d7 [diff] [blame] |
Add a cast to a malloc to shut up the DEC Unix compiler.
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.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; \