From 551d0c365571a2e36505851f6a713464662c5fea Mon Sep 17 00:00:00 2001 From: Julius Ikkala Date: Fri, 4 Jul 2025 00:09:09 +0300 Subject: Replace SLANG_ALIGN_OF with C++11 alignof (#7523) * Replace SLANG_ALIGN_OF with C++11 alignof * Fix formatting (again) --- source/slang/slang.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/slang/slang.cpp') diff --git a/source/slang/slang.cpp b/source/slang/slang.cpp index e98187c85..297a3464f 100644 --- a/source/slang/slang.cpp +++ b/source/slang/slang.cpp @@ -835,7 +835,7 @@ static T makeFromSizeVersioned(const uint8_t* src) const size_t dstSize = sizeof(T); // If they are the same size, and appropriate alignment we can just cast and return - if (srcSize == dstSize && (size_t(src) & (SLANG_ALIGN_OF(T) - 1)) == 0) + if (srcSize == dstSize && (size_t(src) & (alignof(T) - 1)) == 0) { return *(const T*)src; } -- cgit v1.2.3