File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ class xalloc
29
29
xalloc (const xalloc<_Other>&) {}
30
30
template <class _Other >
31
31
xalloc<T>& operator =(const xalloc<_Other>&) { return *this ; }
32
- pointer allocate (size_type n, const void * p = nullptr ) const { return xr_alloc<T>(( u32 ) n); }
32
+ pointer allocate (size_type n, const void * p = nullptr ) const { return xr_alloc<T>(n); }
33
33
char * _charalloc (size_type n) { return (char *)allocate (n); }
34
34
void deallocate (pointer p, size_type n) const { xr_free (p); }
35
35
void deallocate (void * p, size_type n) const { xr_free (p); }
Original file line number Diff line number Diff line change @@ -101,12 +101,12 @@ extern XRCORE_API xrMemory Memory;
101
101
#ifdef DEBUG_MEMORY_NAME
102
102
#include " typeinfo.h"
103
103
template <class T >
104
- IC T* xr_alloc (u32 count)
104
+ IC T* xr_alloc (size_t count)
105
105
{ return (T*)Memory.mem_alloc (count*sizeof (T), typeid (T).name ()); }
106
106
107
107
#else
108
108
template <class T >
109
- IC T* xr_alloc (u32 count)
109
+ IC T* xr_alloc (size_t count)
110
110
{ return (T*)Memory.mem_alloc (count * sizeof (T)); }
111
111
112
112
#endif
You can’t perform that action at this time.
0 commit comments