GS: Fix a couple of 64 bit warnings

This commit is contained in:
Connor McLaughlin 2021-10-01 17:22:00 +10:00 committed by Kojin
parent 928bf71d2a
commit dd3db3fc54
2 changed files with 2 additions and 2 deletions

View File

@ -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<unsigned>(countof(s_Next)));
return vmalloc(size * repeat, false); // Fallback to default vmalloc
}

View File

@ -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<size_t>(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++)