mirror of
https://github.com/RetroDECK/Supermodel.git
synced 2024-11-22 13:55:38 +00:00
Fixed compiler warnings, whitespace, and moved local variable declarations to site of assignment
This commit is contained in:
parent
ec7588e2cd
commit
3627213577
File diff suppressed because it is too large
Load diff
|
@ -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
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue