Explorar o código

Merge pull request #904 from aroulin/y2r-narrowing-warning

Y2R: Fix narrowing warning
archshift %!s(int64=11) %!d(string=hai) anos
pai
achega
2501f111a6
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/core/hw/y2r.cpp

+ 1 - 1
src/core/hw/y2r.cpp

@@ -111,7 +111,7 @@ static void SendData(const u32* input, ConversionBuffer& buf, int amount_of_data
         while (output < unit_end) {
         while (output < unit_end) {
             u32 color = *input++;
             u32 color = *input++;
             Math::Vec4<u8> col_vec{
             Math::Vec4<u8> col_vec{
-                (color >> 24) & 0xFF, (color >> 16) & 0xFF, (color >>  8) & 0xFF, alpha,
+                (u8)(color >> 24), (u8)(color >> 16), (u8)(color >> 8), alpha
             };
             };
 
 
             switch (output_format) {
             switch (output_format) {