From: Dale Weiler Date: Thu, 17 Oct 2013 01:32:31 +0000 (-0400) Subject: float and double shouldn't be used here, this is what qcfloat_t is for. This fixes... X-Git-Tag: 0.3.5~21 X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=commitdiff_plain;h=c63bebd7d8c2ab699b4ae6cf7de7f07d52d413b4 float and double shouldn't be used here, this is what qcfloat_t is for. This fixes the memcmp bug in the folder. --- diff --git a/ast.h b/ast.h index c759a48..05a749a 100644 --- a/ast.h +++ b/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; diff --git a/ir.h b/ir.h index 73dd447..3c236ea 100644 --- a/ir.h +++ b/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;