Message ID | CAKv+Gu-L2EoqioZamh9arLSkXzQF4y=FDykk0YK1XvNkRGC-xg@mail.gmail.com (mailing list archive) |
---|---|
State | Not Applicable, archived |
Headers | show |
diff --git a/evaluate.c b/evaluate.c index a5a830978bda..2e9ad8b7b31d 100644 --- a/evaluate.c +++ b/evaluate.c @@ -1375,7 +1375,7 @@ static int compatible_assignment_types(struct expression *expr, struct symbol *t goto Cast; } /* It's OK if the target is more volatile or const than the source */ - typediff = type_difference(&t->ctype, &s->ctype, 0, mod1); + typediff = type_difference(&t->ctype, &s->ctype, 0, mod1 | MOD_PURE);