From fd610454d62feb0e90d92c93eed207e4185c7f1a Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Tue, 29 Jul 2025 00:30:17 -0500 Subject: [PATCH] [nostalgia/gfx] Fix compiler warning --- src/nostalgia/modules/gfx/src/gfx-gba.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/nostalgia/modules/gfx/src/gfx-gba.cpp b/src/nostalgia/modules/gfx/src/gfx-gba.cpp index bb6ad6f1..a1d6ba4c 100644 --- a/src/nostalgia/modules/gfx/src/gfx-gba.cpp +++ b/src/nostalgia/modules/gfx/src/gfx-gba.cpp @@ -220,8 +220,9 @@ ox::Error loadSpriteTileSheet( bool const loadDefaultPalette) noexcept { for (size_t i{}; i < ts.pixels.size(); i += 2) { MEM_SPRITE_TILES[i >> 1] = - static_cast(ts.pixels[i]) | - (static_cast(ts.pixels[i + 1]) << 8); + static_cast( + ts.pixels[i] | + (static_cast(ts.pixels[i + 1]) << 8)); } if (loadDefaultPalette && ts.defaultPalette) { OX_RETURN_ERROR(loadSpritePalette(ctx, ts.defaultPalette));