summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/emualloc.c
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2010-10-14 07:04:16 +0000
committer Aaron Giles <aaron@aarongiles.com>2010-10-14 07:04:16 +0000
commit3e621b169b9139ff8d7cb98c52615be66e825d5e (patch)
treeb5da88e2821f71b4488f4e60d7821a7d09184115 /src/emu/emualloc.c
parentec6298ad894161c76e36ab7e29e1c93fbef755ff (diff)
Cleanups and version bump.
Diffstat (limited to 'src/emu/emualloc.c')
-rw-r--r--src/emu/emualloc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/emu/emualloc.c b/src/emu/emualloc.c
index 0baa78ae1c2..c9734a36c9c 100644
--- a/src/emu/emualloc.c
+++ b/src/emu/emualloc.c
@@ -236,7 +236,7 @@ void resource_pool::add(resource_pool_item &item)
int hashval = reinterpret_cast<FPTR>(item.m_ptr) % k_hash_prime;
item.m_next = m_hash[hashval];
m_hash[hashval] = &item;
-
+
// fetch the ID of this item's pointer; some implementations put hidden data
// before, so if we don't find it, check 4 bytes ahead
memory_entry *entry = memory_entry::find(item.m_ptr);
@@ -244,13 +244,13 @@ void resource_pool::add(resource_pool_item &item)
entry = memory_entry::find(reinterpret_cast<UINT8 *>(item.m_ptr) - sizeof(size_t));
assert(entry != NULL);
item.m_id = entry->m_id;
-
+
// find the entry to insert after
resource_pool_item *insert_after;
for (insert_after = m_ordered_tail; insert_after != NULL; insert_after = insert_after->m_ordered_prev)
if (insert_after->m_id < item.m_id)
break;
-
+
// insert into the appropriate spot
if (insert_after != NULL)
{