1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 11:38:21 +02:00

Linux fix

This commit is contained in:
Brian Fiete 2024-12-29 13:48:25 -08:00
parent b23c1db0d9
commit f250a5f36b
2 changed files with 14 additions and 14 deletions

View file

@ -450,7 +450,7 @@ protected:
void SetBufferSize(intptr newSize) void SetBufferSize(intptr newSize)
{ {
T* newVals = TAlloc::allocate<T>(newSize); T* newVals = TAlloc::allocate<typename T>(newSize);
if (this->mVals != NULL) if (this->mVals != NULL)
{ {
if (this->mSize > 0) if (this->mSize > 0)
@ -630,7 +630,7 @@ public:
{ {
intptr newSize = this->mAllocSize + this->mAllocSize / 2 + 1; intptr newSize = this->mAllocSize + this->mAllocSize / 2 + 1;
T* newVals = TAlloc::allocate<T>(newSize); T* newVals = TAlloc::allocate<typename T>(newSize);
if (this->mVals != NULL) if (this->mVals != NULL)
{ {
if (idx > 0) // Copy left of idx 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); intptr newSize = BF_MAX(this->mSize + size, this->mAllocSize + this->mAllocSize / 2 + 1);
T* newVals = TAlloc::allocate<T>(newSize); T* newVals = TAlloc::allocate<typename T>(newSize);
if (this->mVals != NULL) if (this->mVals != NULL)
{ {
if (idx > 0) // Copy left of idx 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); intptr newSize = BF_MAX(this->mSize + count, this->mAllocSize + this->mAllocSize / 2 + 1);
T* newVals = TAlloc::allocate<T>(newSize); T* newVals = TAlloc::allocate<typename T>(newSize);
if (this->mVals != NULL) if (this->mVals != NULL)
{ {
if (idx > 0) // Copy left of idx if (idx > 0) // Copy left of idx
@ -769,7 +769,7 @@ public:
protected: protected:
void SetBufferSize(intptr newSize) void SetBufferSize(intptr newSize)
{ {
T* newVals = TAlloc::allocate<T>(newSize); T* newVals = TAlloc::allocate<typename T>(newSize);
if (this->mVals != NULL) if (this->mVals != NULL)
{ {
if (this->mSize > 0) if (this->mSize > 0)
@ -933,7 +933,7 @@ public:
{ {
intptr newSize = this->mAllocSize + this->mAllocSize / 2 + 1; intptr newSize = this->mAllocSize + this->mAllocSize / 2 + 1;
T* newVals = TAlloc::allocate<T>(newSize); T* newVals = TAlloc::allocate<typename T>(newSize);
if (this->mVals != NULL) if (this->mVals != NULL)
{ {
if (idx > 0) // Copy left of idx 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); intptr newSize = BF_MAX(this->mSize + size, this->mAllocSize + this->mAllocSize / 2 + 1);
T* newVals = TAlloc::allocate<T>(newSize); T* newVals = TAlloc::allocate<typename T>(newSize);
if (this->mVals != NULL) if (this->mVals != NULL)
{ {
if (idx > 0) // Copy left of idx 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); intptr newSize = BF_MAX(this->mSize + size, this->mAllocSize + this->mAllocSize / 2 + 1);
T* newVals = TAlloc::allocate<T>(newSize); T* newVals = TAlloc::allocate<typename T>(newSize);
if (this->mVals != NULL) if (this->mVals != NULL)
{ {
if (idx > 0) // Copy left of idx if (idx > 0) // Copy left of idx

View file

@ -378,7 +378,7 @@ protected:
void Grow(intptr newSize) void Grow(intptr newSize)
{ {
T* newVals = TAlloc::allocate<T>(newSize); T* newVals = TAlloc::allocate<typename T>(newSize);
if (this->mVals != NULL) if (this->mVals != NULL)
{ {
if (this->mSize > 0) if (this->mSize > 0)
@ -533,7 +533,7 @@ public:
{ {
intptr newSize = this->mAllocSize + this->mAllocSize / 2 + 1; intptr newSize = this->mAllocSize + this->mAllocSize / 2 + 1;
T* newVals = TAlloc::allocate<T>(newSize); T* newVals = TAlloc::allocate<typename T>(newSize);
if (this->mVals != NULL) if (this->mVals != NULL)
{ {
if (idx > 0) // Copy left of idx 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); intptr newSize = BF_MAX(this->mSize + size, this->mAllocSize + this->mAllocSize / 2 + 1);
T* newVals = TAlloc::allocate<T>(newSize); T* newVals = TAlloc::allocate<typename T>(newSize);
if (this->mVals != NULL) if (this->mVals != NULL)
{ {
if (idx > 0) // Copy left of idx if (idx > 0) // Copy left of idx
@ -638,7 +638,7 @@ public:
protected: protected:
void Grow(intptr newSize) void Grow(intptr newSize)
{ {
T* newVals = TAlloc::allocate<T>(newSize); T* newVals = TAlloc::allocate<typename T>(newSize);
if (this->mVals != NULL) if (this->mVals != NULL)
{ {
if (this->mSize > 0) if (this->mSize > 0)
@ -761,7 +761,7 @@ public:
{ {
intptr newSize = this->mAllocSize + this->mAllocSize / 2 + 1; intptr newSize = this->mAllocSize + this->mAllocSize / 2 + 1;
T* newVals = TAlloc::allocate<T>(newSize); T* newVals = TAlloc::allocate<typename T>(newSize);
if (this->mVals != NULL) if (this->mVals != NULL)
{ {
if (idx > 0) // Copy left of idx 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); intptr newSize = BF_MAX(this->mSize + size, this->mAllocSize + this->mAllocSize / 2 + 1);
T* newVals = TAlloc::allocate<T>(newSize); T* newVals = TAlloc::allocate<typename T>(newSize);
if (this->mVals != NULL) if (this->mVals != NULL)
{ {
if (idx > 0) // Copy left of idx if (idx > 0) // Copy left of idx