From 5055635d3db35fb5c461d07dc3112939a20dfb20 Mon Sep 17 00:00:00 2001 From: drmortalwombat <90205530+drmortalwombat@users.noreply.github.com> Date: Sun, 17 Dec 2023 22:47:14 +0100 Subject: [PATCH] fix unnamed union in math.c until supported by compiler --- include/math.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/math.c b/include/math.c index bbb6126..3ed0649 100644 --- a/include/math.c +++ b/include/math.c @@ -125,7 +125,7 @@ float exp(float f) int fi = (int)ff; - union { + union xx { float f; int i[2]; } x; @@ -155,7 +155,7 @@ float log(float f) if (f == 0.0) return 1.0; - union { + union xx { float f; int i[2]; } x; @@ -193,7 +193,7 @@ float sqrt(float f) { if (f >= 0) { - union { + union xx { float f; int i[2]; } x; @@ -216,7 +216,7 @@ float sqrt(float f) bool isinf(float f) { - union { + union xx { float f; unsigned i[2]; } x; @@ -228,7 +228,7 @@ bool isinf(float f) bool isfinite(float f) { - union { + union xx { float f; unsigned i[2]; } x;