mirror of
https://github.com/PrimeDecomp/prime.git
synced 2025-12-14 00:46:08 +00:00
Replace int types in Retro code
Retro seemingly avoided using the Dolphin
typedefs in most places, opting to use int/uint
instead. This likely means they didn't use
u8/s8/u16/s16/etc either.
Former-commit-id: 133326ae40
This commit is contained in:
@@ -15,7 +15,7 @@ struct rmemory_allocator {
|
||||
if (size == 0) {
|
||||
out = nullptr;
|
||||
} else {
|
||||
out = reinterpret_cast< T* >(new u8[size]);
|
||||
out = reinterpret_cast< T* >(new uchar[size]);
|
||||
}
|
||||
}
|
||||
// TODO: this fixes a regswap in vector::reserve
|
||||
@@ -25,13 +25,13 @@ struct rmemory_allocator {
|
||||
if (size == 0) {
|
||||
return nullptr;
|
||||
} else {
|
||||
return reinterpret_cast< T* >(new u8[size]);
|
||||
return reinterpret_cast< T* >(new uchar[size]);
|
||||
}
|
||||
}
|
||||
template < typename T >
|
||||
static void deallocate(T* ptr) {
|
||||
if (ptr != nullptr) {
|
||||
delete[] reinterpret_cast< u8* >(ptr);
|
||||
delete[] reinterpret_cast< uchar* >(ptr);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user