From bb54cd8d23889c35d9dedfcdbb8f48568af10d5c Mon Sep 17 00:00:00 2001 From: AJR Date: Sun, 24 Nov 2019 12:04:10 -0500 Subject: Fix clang error: cannot initialize a parameter of type 'void *' with an lvalue of type 'volatile unsigned char *' (nw) --- src/lib/util/corealloc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/util/corealloc.cpp') diff --git a/src/lib/util/corealloc.cpp b/src/lib/util/corealloc.cpp index eb6ebe80b37..9d14671000f 100644 --- a/src/lib/util/corealloc.cpp +++ b/src/lib/util/corealloc.cpp @@ -17,7 +17,7 @@ void *operator new(std::size_t n) void *const result(std::malloc(n)); if (result) { - std::fill_n(reinterpret_cast(result), n, g_mame_new_prefill_byte); + std::fill_n(reinterpret_cast(result), n, g_mame_new_prefill_byte); return result; } else -- cgit v1.2.3-70-g09d2