mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-02-21 19:01:29 +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;
|
||||
|
|
2
ir.h
2
ir.h
|
@ -51,7 +51,7 @@ typedef struct ir_value_s {
|
|||
/* constantvalues */
|
||||
bool hasvalue;
|
||||
union {
|
||||
float vfloat;
|
||||
qcfloat_t vfloat;
|
||||
int vint;
|
||||
vec3_t vvec;
|
||||
int32_t ivec[3];
|
||||
|
|
Loading…
Reference in a new issue