float and double shouldn't be used here, this is what qcfloat_t is for. This fixes...
authorDale Weiler <killfieldengine@gmail.com>
Thu, 17 Oct 2013 01:32:31 +0000 (21:32 -0400)
committerDale Weiler <killfieldengine@gmail.com>
Thu, 17 Oct 2013 01:32:31 +0000 (21:32 -0400)
ast.h
ir.h

diff --git a/ast.h b/ast.h
index c759a48e95cd2d8098759dec9c5c03835fe9d5e9..05a749ae8e106715dc8569d929b897c232162d41 100644 (file)
--- 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 73dd447c0df8c946189809557f6dc60caf4ff676..3c236ea7f12e83200656afd82697abd08946d69e 100644 (file)
--- 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;