mirror of https://github.com/PrimeDecomp/prime.git
Fix rmemory_allocator
Former-commit-id: 0f8c26bc33aab05e357e13f6fa1f974ecb223738
This commit is contained in:
parent
9843b74547
commit
2d4ba7275f
|
@ -50,7 +50,6 @@ private:
|
||||||
ARQRequest mRequest;
|
ARQRequest mRequest;
|
||||||
uint mUniqueID;
|
uint mUniqueID;
|
||||||
bool mComplete;
|
bool mComplete;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static bool mbInitialized;
|
static bool mbInitialized;
|
||||||
|
|
|
@ -15,7 +15,7 @@ struct rmemory_allocator {
|
||||||
if (size == 0) {
|
if (size == 0) {
|
||||||
out = nullptr;
|
out = nullptr;
|
||||||
} else {
|
} else {
|
||||||
out = reinterpret_cast< T* >(new uchar[size]);
|
out = reinterpret_cast< T* >(NEW uchar[size]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// TODO: this fixes a regswap in vector::reserve
|
// TODO: this fixes a regswap in vector::reserve
|
||||||
|
@ -25,7 +25,7 @@ struct rmemory_allocator {
|
||||||
if (size == 0) {
|
if (size == 0) {
|
||||||
return nullptr;
|
return nullptr;
|
||||||
} else {
|
} else {
|
||||||
return reinterpret_cast< T* >(new uchar[size]);
|
return reinterpret_cast< T* >(NEW uchar[size]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
template < typename T >
|
template < typename T >
|
||||||
|
|
Loading…
Reference in New Issue