mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-02-20 18:32:01 +00:00
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:
parent
b147602d78
commit
c63bebd7d8
2 changed files with 6 additions and 6 deletions
2
ast.h
2
ast.h
|
@ -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
10
ir.h
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue