From 6e865b656a426ccdafa5558c55a7a29564425001 Mon Sep 17 00:00:00 2001 From: Luke Street Date: Mon, 25 Oct 2021 19:17:25 -0400 Subject: [PATCH] MSVC build fix for COLOR macro --- include/zeus/CColor.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/zeus/CColor.hpp b/include/zeus/CColor.hpp index c1a62d1..156bb7c 100644 --- a/include/zeus/CColor.hpp +++ b/include/zeus/CColor.hpp @@ -18,8 +18,8 @@ #if BYTE_ORDER == __ORDER_LITTLE_ENDIAN__ #define COLOR(rgba) \ - (unsigned)(((rgba)&0x000000FF) << 24 | ((rgba)&0x0000FF00) << 8 | ((rgba)&0x00FF0000) >> 8 | \ - ((rgba)&0xFF000000) >> 24) + (zeus::Comp32)(((rgba)&0x000000FF) << 24 | ((rgba)&0x0000FF00) << 8 | ((rgba)&0x00FF0000) >> 8 | \ + ((rgba)&0xFF000000) >> 24) #else #define COLOR(rgba) rgba #endif @@ -351,4 +351,4 @@ struct hash { return ret; } }; -} \ No newline at end of file +}