summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-05-14 15:30:32 (GMT)
committerGuido van Rossum <guido@python.org>1997-05-14 15:30:32 (GMT)
commit445efa96027c6a1fb0b8a1e44a620942ae67d61b (patch)
tree59adf5f3b156e0a29f392cd0095d9b16956b8e20
parent2ec9031b5589db81026f5fc3a11070002ec4d0d7 (diff)
downloadcpython-445efa96027c6a1fb0b8a1e44a620942ae67d61b.zip
cpython-445efa96027c6a1fb0b8a1e44a620942ae67d61b.tar.gz
cpython-445efa96027c6a1fb0b8a1e44a620942ae67d61b.tar.bz2
Add a cast to a malloc to shut up the DEC Unix compiler.
-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; \