From 327d6929928741711673ecda854232825e24cbe7 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Sat, 14 Mar 2020 22:04:33 +0900 Subject: [PATCH] [qfcc] Correct order of @zero fields This is part of what messed up float_val in the encoding for @params. The other part is something in the linker type encoding merge code: it may be too aggressive. It's also what messed up the size of @params. --- tools/qfcc/source/type.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/qfcc/source/type.c b/tools/qfcc/source/type.c index 1c21e1d62..cdf7ca6df 100644 --- a/tools/qfcc/source/type.c +++ b/tools/qfcc/source/type.c @@ -937,7 +937,6 @@ init_types (void) { static struct_def_t zero_struct[] = { {"string_val", &type_string}, - {"double_val", &type_double}, {"float_val", &type_float}, {"entity_val", &type_entity}, {"field_val", &type_field}, @@ -949,6 +948,7 @@ init_types (void) {"integer_val", &type_integer}, {"uinteger_val", &type_uinteger}, {"quaternion_val", &type_quaternion}, + {"double_val", &type_double}, {0, 0} }; static struct_def_t param_struct[] = {