Browse Source

SIBImporter: fix c++14 compilation issue for clang.

Kim Kulling 9 years ago
parent
commit
a37ea18f09
1 changed files with 6 additions and 1 deletions
  1. 6 1
      code/SIBImporter.cpp

+ 6 - 1
code/SIBImporter.cpp

@@ -163,7 +163,12 @@ static aiColor3D ReadColor(StreamReaderLE* stream)
 
 
 static void UnknownChunk(StreamReaderLE* stream, const SIBChunk& chunk)
 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."));
     DefaultLogger::get()->warn((Formatter::format(), "SIB: Skipping unknown '",temp,"' chunk."));
 }
 }