From 50238fb2ace2f124dedc443f885dee7aa835aae3 Mon Sep 17 00:00:00 2001 From: Ben Payne Date: Tue, 18 Nov 2014 17:47:59 -0500 Subject: [PATCH] Casts are stronger than necessary --- Engine/source/core/util/str.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Engine/source/core/util/str.cpp b/Engine/source/core/util/str.cpp index 36b0637de..d01af6279 100644 --- a/Engine/source/core/util/str.cpp +++ b/Engine/source/core/util/str.cpp @@ -491,7 +491,7 @@ ConsoleFunction( dumpStringMemStats, void, 1, 1, "()" void* String::StringData::operator new( size_t size, U32 len ) { AssertFatal( len != 0, "String::StringData::operator new() - string must not be empty" ); - StringData *str = reinterpret_cast( dMalloc( size + len * sizeof(StringChar) ) ); + StringData *str = static_cast( dMalloc( size + len * sizeof(StringChar) ) ); str->mLength = len; @@ -519,7 +519,7 @@ void String::StringData::operator delete(void *ptr) void* String::StringData::operator new( size_t size, U32 len, DataChunker& chunker ) { AssertFatal( len != 0, "String::StringData::operator new() - string must not be empty" ); - StringData *str = reinterpret_cast( chunker.alloc( size + len * sizeof(StringChar) ) ); + StringData *str = static_cast( chunker.alloc( size + len * sizeof(StringChar) ) ); str->mLength = len;