Use float for enum defs in v6 progs.

The values are (or should be!) written as floats, so don't give any
debuggers hernias when displaying enums in v6 progs.
This commit is contained in:
Bill Currie 2013-01-17 20:53:22 +09:00
parent 6b05a7e964
commit 7a504f8983

View file

@ -633,7 +633,9 @@ get_def_type (qfo_t *qfo, pointer_t type)
case ty_union:
return ev_invalid;
case ty_enum:
return ev_integer; // FIXME v6 progs should be float
if (options.code.progsversion == PROG_ID_VERSION)
return ev_float;
return ev_integer;
case ty_array:
case ty_class:
return ev_invalid;