Fixed compiler warnings, whitespace, and moved local variable declarations to site of assignment

This commit is contained in:
Bart Trzynadlowski 2016-03-22 03:43:31 +00:00
parent ec7588e2cd
commit 3627213577
4 changed files with 1815 additions and 1913 deletions

File diff suppressed because it is too large Load diff

View file

@ -1,4 +1,4 @@
/** /**
** Supermodel ** Supermodel
** A Sega Model 3 Arcade Emulator. ** A Sega Model 3 Arcade Emulator.
** Copyright 2011 Bart Trzynadlowski, Nik Henson ** Copyright 2011 Bart Trzynadlowski, Nik Henson

File diff suppressed because it is too large Load diff

View file

@ -206,7 +206,7 @@ bool CTextureRefs::UpdateHashCapacity(unsigned capacity)
m_hashEntries = new(std::nothrow) HashEntry*[capacity]; m_hashEntries = new(std::nothrow) HashEntry*[capacity];
if (!m_hashEntries) if (!m_hashEntries)
return false; return false;
memset(m_hashEntries, NULL, capacity * sizeof(HashEntry*)); memset(m_hashEntries, 0, capacity * sizeof(HashEntry*));
if (oldEntries) if (oldEntries)
{ {
// Redistribute entries into new entries array // Redistribute entries into new entries array