Ensure .zero does not get a vector field for v6 progs.

v6 progs expects .zero to be only 1 word. The code actually tried to keep
vector out of .zero, but it seems I'd rearranged the structure defintion
without updating the code that kills the vector field. Problem spotted by
divVerent.
This commit is contained in:
Bill Currie 2012-05-02 22:29:17 +09:00
parent 4fe7efbed8
commit ce278b2fbf

View file

@ -843,9 +843,8 @@ init_types (void)
if (options.code.progsversion == PROG_ID_VERSION) {
// vector can't be part of .zero for v6 progs because for v6 progs,
// .zero is only one word wide.
zero_struct[7].name = 0;
zero_struct[6].name = 0;
// v6 progs don't have integers or quaternions
zero_struct[7].name = 0;
param_struct[7].name = 0;
type_nil = &type_vector;
type_default = &type_float;