From 32bf6e4ed813417a47572dbd6c531c4f7e28cfc9 Mon Sep 17 00:00:00 2001 From: bkaradzic Date: Fri, 30 Aug 2013 21:42:47 -0700 Subject: [PATCH] Fixed bad cast. --- include/bx/allocator.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/bx/allocator.h b/include/bx/allocator.h index d80755d..a5b0f51 100644 --- a/include/bx/allocator.h +++ b/include/bx/allocator.h @@ -206,7 +206,7 @@ namespace bx BX_UNUSED(_file, _line); return _aligned_malloc(_size, _align); # else - return alignedAlloc(static_castthis, _size, _align, _file, _line); + return alignedAlloc(static_cast(this), _size, _align, _file, _line); # endif // BX_ } @@ -216,7 +216,7 @@ namespace bx BX_UNUSED(_file, _line); return _aligned_free(_ptr); # else - return alignedFree(static_castthis, _ptr, _align, _file, _line); + return alignedFree(static_cast(this), _ptr, _align, _file, _line); # endif // BX_ } @@ -226,7 +226,7 @@ namespace bx BX_UNUSED(_file, _line); return _aligned_realloc(_ptr, _size, _align); # else - return alignedRealloc(static_castthis, _ptr, _size, _align, _file, _line); + return alignedRealloc(static_cast(this), _ptr, _size, _align, _file, _line); # endif // BX_ } };