summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib
diff options
context:
space:
mode:
authorGravatarGravatar AJR <ajrhacker@users.noreply.github.com>2019-11-24 12:04:10 -0500
committerGravatarGravatar AJR <ajrhacker@users.noreply.github.com>2019-11-24 12:04:30 -0500
commitbb54cd8d23889c35d9dedfcdbb8f48568af10d5c (patch)
tree671cff1523e7fc3051e211fba924ff5e7c62347e /src/lib
parent6a8ffd5ff46d756a7967d8292c1d8a7f7235e449 (diff)
Fix clang error: cannot initialize a parameter of type 'void *' with an lvalue of type 'volatile unsigned char *' (nw)
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/util/corealloc.cpp2
1 files changed, 1 insertions, 1 deletions
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<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