mirror of https://github.com/PCSX2/pcsx2.git
GS: Fix a couple of 64 bit warnings
This commit is contained in:
parent
928bf71d2a
commit
dd3db3fc54
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
@ -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++)
|
||||
|
|
Loading…
Reference in New Issue