From 23ad94073f4c2f7131fa0c95b6202f2f9027db41 Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Sat, 22 Oct 2016 11:31:49 +0200 Subject: use standard types uintptr_t, char16_t and char32_t instead of FPTR, utf16_char, unicode_char (nw) --- src/emu/emualloc.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/emu/emualloc.cpp') diff --git a/src/emu/emualloc.cpp b/src/emu/emualloc.cpp index f424bca39cb..39f42378499 100644 --- a/src/emu/emualloc.cpp +++ b/src/emu/emualloc.cpp @@ -67,7 +67,7 @@ void resource_pool::add(resource_pool_item &item, size_t size, const char *type) std::lock_guard lock(m_listlock); // insert into hash table - int hashval = reinterpret_cast(item.m_ptr) % m_hash_size; + int hashval = reinterpret_cast(item.m_ptr) % m_hash_size; item.m_next = m_hash[hashval]; m_hash[hashval] = &item; @@ -121,7 +121,7 @@ void resource_pool::remove(void *ptr) // search for the item std::lock_guard lock(m_listlock); - int hashval = reinterpret_cast(ptr) % m_hash_size; + int hashval = reinterpret_cast(ptr) % m_hash_size; for (resource_pool_item **scanptr = &m_hash[hashval]; *scanptr != nullptr; scanptr = &(*scanptr)->m_next) // must match the pointer @@ -160,7 +160,7 @@ resource_pool_item *resource_pool::find(void *ptr) // search for the item std::lock_guard lock(m_listlock); - int hashval = reinterpret_cast(ptr) % m_hash_size; + int hashval = reinterpret_cast(ptr) % m_hash_size; resource_pool_item *item; for (item = m_hash[hashval]; item != nullptr; item = item->m_next) if (item->m_ptr == ptr) -- cgit v1.2.3-70-g09d2