From dbdcdb059e23ae16ff886764cf2ce33dbf4900f2 Mon Sep 17 00:00:00 2001 From: "Wolfgang (Blub) Bumiller" Date: Mon, 12 Nov 2012 23:05:44 +0100 Subject: [PATCH] array-field setter needs to use STOREP* --- parser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/parser.c b/parser.c index 0fff1d9..b81d06c 100644 --- a/parser.c +++ b/parser.c @@ -2344,10 +2344,10 @@ static ast_expression *array_field_setter_node( ast_return *ret; ast_entfield *entfield; ast_array_index *subscript; - int assignop = type_store_instr[value->expression.vtype]; + int assignop = type_storep_instr[value->expression.vtype]; if (value->expression.vtype == TYPE_FIELD && value->expression.next->expression.vtype == TYPE_VECTOR) - assignop = INSTR_STORE_V; + assignop = INSTR_STOREP_V; subscript = ast_array_index_new(ctx, (ast_expression*)array, (ast_expression*)parser_const_float(parser, from)); if (!subscript) -- 2.39.2