diff options
author | 2019-11-24 12:04:10 -0500 | |
---|---|---|
committer | 2019-11-24 12:04:30 -0500 | |
commit | bb54cd8d23889c35d9dedfcdbb8f48568af10d5c (patch) | |
tree | 671cff1523e7fc3051e211fba924ff5e7c62347e | |
parent | 6a8ffd5ff46d756a7967d8292c1d8a7f7235e449 (diff) |
Fix clang error: cannot initialize a parameter of type 'void *' with an lvalue of type 'volatile unsigned char *' (nw)
-rw-r--r-- | src/lib/util/corealloc.cpp | 2 |
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 |