Browse Source

fix for clang runtime checks for overflow

Mike Samsonov 6 years ago
parent
commit
6c13ec8190
1 changed files with 1 additions and 0 deletions
  1. 1 0
      code/FBXUtil.cpp

+ 1 - 0
code/FBXUtil.cpp

@@ -170,6 +170,7 @@ size_t DecodeBase64(const char* in, size_t inLength, uint8_t* out, size_t maxOut
         {
             out[dst_offset++] = static_cast<uint8_t>((val >> valb) & 0xFF);
             valb -= 8;
+            val &= 0xFFF;
         }
     }
     return dst_offset;