From a37ea18f09b2d1b8f970609c782e3b7eb0dd0d1f Mon Sep 17 00:00:00 2001 From: Kim Kulling Date: Sun, 31 Jan 2016 00:41:14 +0100 Subject: [PATCH] SIBImporter: fix c++14 compilation issue for clang. --- code/SIBImporter.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/code/SIBImporter.cpp b/code/SIBImporter.cpp index 34db8d78f..4a124a4ae 100644 --- a/code/SIBImporter.cpp +++ b/code/SIBImporter.cpp @@ -163,7 +163,12 @@ static aiColor3D ReadColor(StreamReaderLE* stream) static void UnknownChunk(StreamReaderLE* stream, const SIBChunk& chunk) { - char temp[5] = { (chunk.Tag>>24)&0xff, (chunk.Tag>>16)&0xff, (chunk.Tag>>8)&0xff, chunk.Tag&0xff, '\0' }; + char temp[5] = { + ( char ) ( chunk.Tag>>24 ) & 0xff, + ( char ) ( chunk.Tag>>16 ) & 0xff, + ( char ) ( chunk.Tag>>8 ) & 0xff, + ( char ) chunk.Tag & 0xff, '\0' + }; DefaultLogger::get()->warn((Formatter::format(), "SIB: Skipping unknown '",temp,"' chunk.")); }