From dba40bb36ff09c02ce65b59047f23ae120ea14ae Mon Sep 17 00:00:00 2001 From: cutealien Date: Thu, 26 Aug 2021 21:32:17 +0000 Subject: [PATCH] PACK_STRUCT was likely ignored in ieee654 struct. clang warned about that and I think warning made sense. Also still works on gcc - will test on VS tomorrow. git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6248 dfc29bdd-3216-0410-991c-e03cc46cb475 --- source/Irrlicht/SoftwareDriver2_helper.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/Irrlicht/SoftwareDriver2_helper.h b/source/Irrlicht/SoftwareDriver2_helper.h index 83168c94..47377aed 100644 --- a/source/Irrlicht/SoftwareDriver2_helper.h +++ b/source/Irrlicht/SoftwareDriver2_helper.h @@ -164,7 +164,7 @@ typedef union { unsigned int u; struct { unsigned int frac:23; unsigned exp:8; unsigned int sign:1; } fields; struct { unsigned int frac_exp:31; } abs; -} ieee754 PACK_STRUCT; +} PACK_STRUCT ieee754; // Default alignment #include "irrunpack.h"