aboutsummaryrefslogtreecommitdiff
path: root/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'init.c')
-rw-r--r--init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.c b/init.c
index 374ebff..9d39130 100644
--- a/init.c
+++ b/init.c
@@ -264,7 +264,7 @@ parseinit(struct scope *s, struct type *t)
break;
default: /* scalar type */
assert(t->prop & PROPSCALAR);
- expr = exprconvert(expr, t);
+ expr = exprassign(expr, t);
goto add;
}
focus(&p);