Fix vec3_cross. Added optimization to Makefile since we've been compiling gmqcc witho...
[xonotic/gmqcc.git] / fold.c
diff --git a/fold.c b/fold.c
index 86c443d8f7d502e2ed249f388793a88c9752e629..38190749e39c4db29ef4c0eb13eafa7418f718ad 100644 (file)
--- a/fold.c
+++ b/fold.c
@@ -765,6 +765,10 @@ static GMQCC_INLINE vec3_t vec3_cross(lex_ctx_t ctx, vec3_t a, vec3_t b) {
     if (!OPTS_FLAG(ARITHMETIC_EXCEPTIONS))
         goto end;
 
+    sa = vec3_soft_convert(a);
+    sb = vec3_soft_convert(b);
+
+    sfloat_init(&s[0]);
     sfloat_init(&s[1]);
     sfloat_init(&s[2]);
     sfloat_init(&s[3]);