From b01594f6a82c899fec8dfd4f81c5c4ee852d7129 Mon Sep 17 00:00:00 2001 From: Kim Kulling Date: Tue, 20 Mar 2018 21:52:42 +0100 Subject: [PATCH] Update EmbedTexturesProcess.cpp Replace c-cast by static_cast. --- code/EmbedTexturesProcess.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/EmbedTexturesProcess.cpp b/code/EmbedTexturesProcess.cpp index b434d79d7..27313869d 100644 --- a/code/EmbedTexturesProcess.cpp +++ b/code/EmbedTexturesProcess.cpp @@ -134,7 +134,7 @@ bool EmbedTexturesProcess::addTexture(aiScene* pScene, std::string path) const { // Add the new texture auto pTexture = new aiTexture(); pTexture->mHeight = 0; // Means that this is still compressed - pTexture->mWidth = uint32_t(imageSize); + pTexture->mWidth = static_cats(imageSize); pTexture->pcData = imageContent; auto extension = path.substr(path.find_last_of('.') + 1u);