Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 445efa9

Browse files
committed
Add a cast to a malloc to shut up the DEC Unix compiler.
1 parent 2ec9031 commit 445efa9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Modules/regexpr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ if (stack.index == STACK_PAGE_SIZE) \
177177
{ \
178178
if (stack.current->next == NULL) \
179179
{ \
180-
stack.current->next = malloc(sizeof(item_page_t)); \
180+
stack.current->next = (item_page_t *)malloc(sizeof(item_page_t)); \
181181
if (stack.current->next == NULL) \
182182
on_error; \
183183
stack.current->next->prev = stack.current; \

0 commit comments

Comments
 (0)