diff --git a/Sources/Plasma/NucleusLib/pnUtils/pnUtArray.h b/Sources/Plasma/NucleusLib/pnUtils/pnUtArray.h index ba7478e6..38c32b8f 100644 --- a/Sources/Plasma/NucleusLib/pnUtils/pnUtArray.h +++ b/Sources/Plasma/NucleusLib/pnUtils/pnUtArray.h @@ -823,7 +823,7 @@ void TArray::AdjustSizeChunked (unsigned newAlloc, unsigned newCount) { // Process growing the allocation else - newAlloc = CalcAllocGrowth(newAlloc, this->m_alloc, &this->m_chunkSize); + newAlloc = this->CalcAllocGrowth(newAlloc, this->m_alloc, &this->m_chunkSize); // Perform the allocation this->AdjustSize(newAlloc, newCount); diff --git a/Sources/Plasma/NucleusLib/pnUtils/pnUtHash.h b/Sources/Plasma/NucleusLib/pnUtils/pnUtHash.h index 04c3797d..1f44c2d9 100644 --- a/Sources/Plasma/NucleusLib/pnUtils/pnUtHash.h +++ b/Sources/Plasma/NucleusLib/pnUtils/pnUtHash.h @@ -52,6 +52,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com #include "pnUtList.h" #include "pnUtArray.h" #include "pnUtMath.h" +#include "pnUtStr.h" /**************************************************************************** * @@ -536,7 +537,7 @@ const T * THashTable::Find (const K & key) const { unsigned hash = key.GetHash(); const LIST(T) & slotList = this->GetSlotList(hash); for (const T * curr = slotList.Head(); curr; curr = slotList.Next(curr)) - if ((GetHash(curr) == hash) && (*curr == key)) + if ((this->GetHash(curr) == hash) && (*curr == key)) return curr; return nil; } diff --git a/Sources/Plasma/NucleusLib/pnUtils/pnUtStr.cpp b/Sources/Plasma/NucleusLib/pnUtils/pnUtStr.cpp index 320fec69..016bb7b6 100644 --- a/Sources/Plasma/NucleusLib/pnUtils/pnUtStr.cpp +++ b/Sources/Plasma/NucleusLib/pnUtils/pnUtStr.cpp @@ -69,6 +69,25 @@ static uint32_t s_hashValue[] = { * Internal functions * ***/ +//=========================================================================== +template +static unsigned IStrLen (const chartype str[]) { + unsigned chars = 0; + for (; *str++; ++chars) + NULL_STMT; + return chars; +} + +//=========================================================================== +template +static void IStrCopy (chartype * dest, const chartype source[], unsigned chars) { + while ((chars > 1) && ((*dest = *source++) != 0)) { + --chars; + ++dest; + } + if (chars) + *dest = 0; +} //=========================================================================== template @@ -207,17 +226,6 @@ static int IStrCmpI (const chartype str1[], const chartype str2[], unsigned char return 0; } -//=========================================================================== -template -static void IStrCopy (chartype * dest, const chartype source[], unsigned chars) { - while ((chars > 1) && ((*dest = *source++) != 0)) { - --chars; - ++dest; - } - if (chars) - *dest = 0; -} - //=========================================================================== // returns StrLen(dest) template @@ -284,15 +292,6 @@ static chartype * IStrStrI (chartype source[], const chartype match[]) { return nil; } -//=========================================================================== -template -static unsigned IStrLen (const chartype str[]) { - unsigned chars = 0; - for (; *str++; ++chars) - NULL_STMT; - return chars; -} - //=========================================================================== template static void IStrLower (chartype * dest, unsigned chars) { diff --git a/Sources/Plasma/NucleusLib/pnUtils/pnUtStr.h b/Sources/Plasma/NucleusLib/pnUtils/pnUtStr.h index 02649403..3ab23464 100644 --- a/Sources/Plasma/NucleusLib/pnUtils/pnUtStr.h +++ b/Sources/Plasma/NucleusLib/pnUtils/pnUtStr.h @@ -50,6 +50,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com #include "Pch.h" #include "pnUtArray.h" +#include /***************************************************************************** *