From e288fca9430c22f16f9dd1bedfb3de62f1c53bd1 Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Sun, 29 Dec 2024 15:01:14 -0800 Subject: [PATCH] Template fix --- BeefySysLib/util/Array.h | 16 ++++++++-------- BeefySysLib/util/SizedArray.h | 12 ++++++------ 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/BeefySysLib/util/Array.h b/BeefySysLib/util/Array.h index 32826974..38b6c988 100644 --- a/BeefySysLib/util/Array.h +++ b/BeefySysLib/util/Array.h @@ -450,7 +450,7 @@ protected: void SetBufferSize(intptr newSize) { - T* newVals = allocate(newSize); + T* newVals = TAlloc::template allocate(newSize); if (this->mVals != NULL) { if (this->mSize > 0) @@ -630,7 +630,7 @@ public: { intptr newSize = this->mAllocSize + this->mAllocSize / 2 + 1; - T* newVals = allocate(newSize); + T* newVals = TAlloc::template allocate(newSize); if (this->mVals != NULL) { if (idx > 0) // Copy left of idx @@ -658,7 +658,7 @@ public: { intptr newSize = BF_MAX(this->mSize + size, this->mAllocSize + this->mAllocSize / 2 + 1); - T* newVals = allocate(newSize); + T* newVals = TAlloc::template allocate(newSize); if (this->mVals != NULL) { if (idx > 0) // Copy left of idx @@ -687,7 +687,7 @@ public: { intptr newSize = BF_MAX(this->mSize + count, this->mAllocSize + this->mAllocSize / 2 + 1); - T* newVals = allocate(newSize); + T* newVals = TAlloc::template allocate(newSize); if (this->mVals != NULL) { if (idx > 0) // Copy left of idx @@ -769,7 +769,7 @@ public: protected: void SetBufferSize(intptr newSize) { - T* newVals = allocate(newSize); + T* newVals = TAlloc::template allocate(newSize); if (this->mVals != NULL) { if (this->mSize > 0) @@ -933,7 +933,7 @@ public: { intptr newSize = this->mAllocSize + this->mAllocSize / 2 + 1; - T* newVals = allocate(newSize); + T* newVals = TAlloc::template allocate(newSize); if (this->mVals != NULL) { if (idx > 0) // Copy left of idx @@ -961,7 +961,7 @@ public: { intptr newSize = BF_MAX(this->mSize + size, this->mAllocSize + this->mAllocSize / 2 + 1); - T* newVals = allocate(newSize); + T* newVals = TAlloc::template allocate(newSize); if (this->mVals != NULL) { if (idx > 0) // Copy left of idx @@ -989,7 +989,7 @@ public: { intptr newSize = BF_MAX(this->mSize + size, this->mAllocSize + this->mAllocSize / 2 + 1); - T* newVals = allocate(newSize); + T* newVals = TAlloc::template allocate(newSize); if (this->mVals != NULL) { if (idx > 0) // Copy left of idx diff --git a/BeefySysLib/util/SizedArray.h b/BeefySysLib/util/SizedArray.h index 9c8804b1..1a6215be 100644 --- a/BeefySysLib/util/SizedArray.h +++ b/BeefySysLib/util/SizedArray.h @@ -378,7 +378,7 @@ protected: void Grow(intptr newSize) { - T* newVals = allocate(newSize); + T* newVals = TAlloc::template allocate(newSize); if (this->mVals != NULL) { if (this->mSize > 0) @@ -533,7 +533,7 @@ public: { intptr newSize = this->mAllocSize + this->mAllocSize / 2 + 1; - T* newVals = allocate(newSize); + T* newVals = TAlloc::template allocate(newSize); if (this->mVals != NULL) { if (idx > 0) // Copy left of idx @@ -562,7 +562,7 @@ public: { intptr newSize = BF_MAX(this->mSize + size, this->mAllocSize + this->mAllocSize / 2 + 1); - T* newVals = allocate(newSize); + T* newVals = TAlloc::template allocate(newSize); if (this->mVals != NULL) { if (idx > 0) // Copy left of idx @@ -638,7 +638,7 @@ public: protected: void Grow(intptr newSize) { - T* newVals = allocate(newSize); + T* newVals = TAlloc::template allocate(newSize); if (this->mVals != NULL) { if (this->mSize > 0) @@ -761,7 +761,7 @@ public: { intptr newSize = this->mAllocSize + this->mAllocSize / 2 + 1; - T* newVals = allocate(newSize); + T* newVals = TAlloc::template allocate(newSize); if (this->mVals != NULL) { if (idx > 0) // Copy left of idx @@ -790,7 +790,7 @@ public: { intptr newSize = BF_MAX(this->mSize + size, this->mAllocSize + this->mAllocSize / 2 + 1); - T* newVals = allocate(newSize); + T* newVals = TAlloc::template allocate(newSize); if (this->mVals != NULL) { if (idx > 0) // Copy left of idx