From 0e06404ec1fd1a5f3d45897e517d519ee5566544 Mon Sep 17 00:00:00 2001 From: Turo Lamminen Date: Tue, 2 Feb 2016 20:23:46 +0200 Subject: [PATCH] SIBImporter: Properly fix C++11 issues for Clang C-style cast has a higher precedence than & -operator so this was getting parsed differently than Kim assumed. Thou shalt not use C-style casts. --- code/SIBImporter.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/code/SIBImporter.cpp b/code/SIBImporter.cpp index 4a124a4ae..4bd145c60 100644 --- a/code/SIBImporter.cpp +++ b/code/SIBImporter.cpp @@ -164,10 +164,10 @@ static aiColor3D ReadColor(StreamReaderLE* stream) static void UnknownChunk(StreamReaderLE* stream, const SIBChunk& chunk) { char temp[5] = { - ( char ) ( chunk.Tag>>24 ) & 0xff, - ( char ) ( chunk.Tag>>16 ) & 0xff, - ( char ) ( chunk.Tag>>8 ) & 0xff, - ( char ) chunk.Tag & 0xff, '\0' + static_cast(( chunk.Tag>>24 ) & 0xff), + static_cast(( chunk.Tag>>16 ) & 0xff), + static_cast(( chunk.Tag>>8 ) & 0xff), + static_cast(chunk.Tag & 0xff), '\0' }; DefaultLogger::get()->warn((Formatter::format(), "SIB: Skipping unknown '",temp,"' chunk."));