From b1a50434c97c574004af0e976ecb3533c6dc60a3 Mon Sep 17 00:00:00 2001 From: Sour Date: Tue, 7 May 2019 20:55:44 -0400 Subject: [PATCH] Fixed compilation issue on recent compilers (lambdas can't use constexpr until C++17) --- Core/Ppu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/Ppu.cpp b/Core/Ppu.cpp index 732e33b..a473a06 100644 --- a/Core/Ppu.cpp +++ b/Core/Ppu.cpp @@ -847,7 +847,7 @@ void Ppu::RenderTilemapMode7() return; } - constexpr auto clip = [](int32_t val) { return (val & 0x2000) ? (val | ~0x3ff) : (val & 0x3ff); }; + auto clip = [](int32_t val) { return (val & 0x2000) ? (val | ~0x3ff) : (val & 0x3ff); }; int32_t lutX[256]; int32_t lutY[256];