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
2929 xalloc (const xalloc<_Other>&) {}
3030 template <class _Other >
3131 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); }
3333 char * _charalloc (size_type n) { return (char *)allocate (n); }
3434 void deallocate (pointer p, size_type n) const { xr_free (p); }
3535 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;
101101#ifdef DEBUG_MEMORY_NAME
102102#include " typeinfo.h"
103103template <class T >
104- IC T* xr_alloc (u32 count)
104+ IC T* xr_alloc (size_t count)
105105{ return (T*)Memory.mem_alloc (count*sizeof (T), typeid (T).name ()); }
106106
107107#else
108108template <class T >
109- IC T* xr_alloc (u32 count)
109+ IC T* xr_alloc (size_t count)
110110{ return (T*)Memory.mem_alloc (count * sizeof (T)); }
111111
112112#endif
You can’t perform that action at this time.
0 commit comments