summaryrefslogtreecommitdiff
path: root/indra/llmath/llmatrix3a.cpp
diff options
context:
space:
mode:
authorRye <rye@alchemyviewer.org>2025-10-27 02:55:56 -0400
committerRye <rye@alchemyviewer.org>2025-10-27 04:59:16 -0400
commite803bbc0db695abe73de9797510ba22646528e23 (patch)
treea3aa818fa4768b40df9223fb5922aa27ac2a21a7 /indra/llmath/llmatrix3a.cpp
parentb1a96885492b65fe0636bf1184f5a8fbfe7b3930 (diff)
Modernize viewer alignment macros to use alignas and fix misaligned class issues reported by ubsan/asan
Signed-off-by: Rye <rye@alchemyviewer.org>
Diffstat (limited to 'indra/llmath/llmatrix3a.cpp')
-rw-r--r--indra/llmath/llmatrix3a.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/llmath/llmatrix3a.cpp b/indra/llmath/llmatrix3a.cpp
index c0b00201cf..904c9de2a1 100644
--- a/indra/llmath/llmatrix3a.cpp
+++ b/indra/llmath/llmatrix3a.cpp
@@ -28,7 +28,7 @@
#include "llmath.h"
-static LL_ALIGN_16(const F32 M_IDENT_3A[12]) =
+alignas(16) static const F32 M_IDENT_3A[12] =
{ 1.f, 0.f, 0.f, 0.f, // Column 1
0.f, 1.f, 0.f, 0.f, // Column 2
0.f, 0.f, 1.f, 0.f }; // Column 3