From c63bebd7d8c2ab699b4ae6cf7de7f07d52d413b4 Mon Sep 17 00:00:00 2001 From: Dale Weiler Date: Wed, 16 Oct 2013 21:32:31 -0400 Subject: [PATCH] float and double shouldn't be used here, this is what qcfloat_t is for. This fixes the memcmp bug in the folder. --- ast.h | 2 +- ir.h | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) 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; -- 2.39.2