From dd3db3fc54a878d8d33af5a999cb44d88815b34f Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Fri, 1 Oct 2021 17:22:00 +1000 Subject: [PATCH] GS: Fix a couple of 64 bit warnings --- pcsx2/GS/GS.cpp | 2 +- pcsx2/GS/Renderers/OpenGL/GSVertexArrayOGL.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pcsx2/GS/GS.cpp b/pcsx2/GS/GS.cpp index 1843c404b6..3d33470650 100644 --- a/pcsx2/GS/GS.cpp +++ b/pcsx2/GS/GS.cpp @@ -1174,7 +1174,7 @@ void* fifo_alloc(size_t size, size_t repeat) if (repeat >= countof(s_Next)) { - fprintf(stderr, "Memory mapping overflow (%zu >= %u)\n", repeat, countof(s_Next)); + fprintf(stderr, "Memory mapping overflow (%zu >= %u)\n", repeat, static_cast(countof(s_Next))); return vmalloc(size * repeat, false); // Fallback to default vmalloc } diff --git a/pcsx2/GS/Renderers/OpenGL/GSVertexArrayOGL.h b/pcsx2/GS/Renderers/OpenGL/GSVertexArrayOGL.h index 43a8d57736..7528a2e95b 100644 --- a/pcsx2/GS/Renderers/OpenGL/GSVertexArrayOGL.h +++ b/pcsx2/GS/Renderers/OpenGL/GSVertexArrayOGL.h @@ -53,7 +53,7 @@ public: glGenBuffers(1, &m_buffer_name); // Warning m_limit is the number of object (not the size in Bytes) // Round it to next power of 2 - m_limit = 1u << (1u + (size_t)std::log2(count - 1u)); + m_limit = static_cast(1) << (1u + (size_t)std::log2(count - 1u)); m_quarter_shift = (size_t)std::log2(m_limit * STRIDE) - 2; for (size_t i = 0; i < 5; i++)