Бранимир Караџић 3 years ago
parent
commit
296ed0a81e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      examples/07-callback/callback.cpp

+ 1 - 1
examples/07-callback/callback.cpp

@@ -279,7 +279,7 @@ public:
 
 
 		if (kNaturalAlignment >= _align)
 		if (kNaturalAlignment >= _align)
 		{
 		{
-			intptr_t _ptrOld = (intptr_t) _ptr;
+			intptr_t _ptrOld = intptr_t(_ptr);
 			void* ptr = ::realloc(_ptr, _size);
 			void* ptr = ::realloc(_ptr, _size);
 			bx::debugPrintf("%s(%d): REALLOC %p (old %p) of %d byte(s)\n", _file, _line, ptr, _ptrOld, _size);
 			bx::debugPrintf("%s(%d): REALLOC %p (old %p) of %d byte(s)\n", _file, _line, ptr, _ptrOld, _size);