Added missing include and fixed a mistake

pull/2407/head
Matias Lavik 2019-04-06 23:44:14 +02:00
parent 015e960d0e
commit fac392d6cb
1 changed files with 2 additions and 1 deletions

View File

@ -49,6 +49,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include <assimp/TinyFormatter.h> #include <assimp/TinyFormatter.h>
#include <string> #include <string>
#include <cstring>
#ifndef ASSIMP_BUILD_NO_FBX_IMPORTER #ifndef ASSIMP_BUILD_NO_FBX_IMPORTER
@ -126,7 +127,7 @@ static const uint8_t base64DecodeTable[128] = {
uint8_t DecodeBase64(char ch) uint8_t DecodeBase64(char ch)
{ {
return base64DecodeTable[ch]; return base64DecodeTable[size_t(ch)];
} }
size_t DecodeBase64(const char* in, size_t inLength, uint8_t*& out) size_t DecodeBase64(const char* in, size_t inLength, uint8_t*& out)