Updated allocT implementation to cast the returned void* to a T*.
Moved builtin memory tag names to top of source file because it didn't like being forward declared. TODO: Revisit this later Fixed compilation error where the source-local function get_eng_unit did not return the modified value. Shuffled include order around to fix compilation issues.
This commit is contained in:
@@ -79,7 +79,7 @@ namespace basalt
|
||||
|
||||
template<typename T>
|
||||
T* allocT(u64 num_elements, MEMORY_TAG tag)
|
||||
{ return alloc(num_elements*sizeof(T), tag); }
|
||||
{ return (T*)alloc(num_elements*sizeof(T), tag); }
|
||||
template<typename T>
|
||||
T* setzeroT(T * dst, u64 num_elements)
|
||||
{ return setzero(dst, num_elements*sizeof(T)); }
|
||||
|
||||
Reference in New Issue
Block a user