From 3bbfc67f9860d7cb2b308ed97026a520838d1793 Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Mon, 19 Apr 2004 16:35:58 -0700 Subject: [PATCH] Accept "void *" for array assignments too. We can't really assign to an array, but we can have "array" arguments to functions etc that will degenerate into pointers, and NULL is a valid initializer for those. --- evaluate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/evaluate.c b/evaluate.c index 35d06f84..e1dd340c 100644 --- a/evaluate.c +++ b/evaluate.c @@ -723,7 +723,7 @@ static int compatible_assignment_types(struct expression *expr, struct symbol *t t = t->ctype.base_type; target_as |= t->ctype.as; } - if (t->type == SYM_PTR || t->type == SYM_FN) { + if (t->type == SYM_PTR || t->type == SYM_FN || t->type == SYM_ARRAY) { struct expression *right = *rp; struct symbol *s = source; int source_as; -- 2.11.4.GIT