From f4ba9b3df33e077956975e6d3cd340bad0a3d92d Mon Sep 17 00:00:00 2001 From: Amy Retzerau Date: Tue, 23 Dec 2025 11:15:27 +0100 Subject: [PATCH] fix: some const for g++ compiler in fastmath --- fastmath.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fastmath.hpp b/fastmath.hpp index c4f26d1..7fe619d 100644 --- a/fastmath.hpp +++ b/fastmath.hpp @@ -161,7 +161,7 @@ template struct vec { } friend decimal operator*(const vec &v1, const vec &v2) { - decimal res = {0}; + decimal res = decimal(0.0f); for (int i = 0; i < n; i++) { res += v1.v[i] * v2.v[i]; } @@ -242,7 +242,6 @@ struct vec4 : public vec<4, vec4> { vec4(int32_t x, int32_t y, int32_t z, int32_t w) : vec<4, vec4>(decimal(x), decimal(y), decimal(z), decimal(w)) {} - vec4(decimal x, decimal y, decimal z) : vec<4, vec4>(x, y, z, 0) {} decimal &x() { return v[0]; } decimal &y() { return v[1]; }