Fix clang error: cannot initialize a parameter of type 'void *' with an lvalue of type 'volatile unsigned char *' (nw)

This commit is contained in:
AJR 2019-11-24 12:04:10 -05:00
parent 6a8ffd5ff4
commit bb54cd8d23

View File

@ -17,7 +17,7 @@ void *operator new(std::size_t n)
void *const result(std::malloc(n));
if (result)
{
std::fill_n(reinterpret_cast<std::uint8_t volatile *>(result), n, g_mame_new_prefill_byte);
std::fill_n(reinterpret_cast<std::uint8_t *>(result), n, g_mame_new_prefill_byte);
return result;
}
else