float and double shouldn't be used here, this is what qcfloat_t is for. This fixes the memcmp bug in the folder.

This commit is contained in:
Dale Weiler 2013-10-16 21:32:31 -04:00
parent b147602d78
commit c63bebd7d8
2 changed files with 6 additions and 6 deletions

2
ast.h
View file

@ -169,7 +169,7 @@ struct ast_expression_common
* is like creating a 'float foo', foo serving as the type's name.
*/
typedef union {
double vfloat;
qcfloat_t vfloat;
int vint;
vec3_t vvec;
const char *vstring;

10
ir.h
View file

@ -51,11 +51,11 @@ typedef struct ir_value_s {
/* constantvalues */
bool hasvalue;
union {
float vfloat;
int vint;
vec3_t vvec;
int32_t ivec[3];
char *vstring;
qcfloat_t vfloat;
int vint;
vec3_t vvec;
int32_t ivec[3];
char *vstring;
struct ir_value_s *vpointer;
struct ir_function_s *vfunc;
} constval;