diff --git a/tools/assimp_cmd/ImageExtractor.cpp b/tools/assimp_cmd/ImageExtractor.cpp index 8c3841838..62fa94f59 100644 --- a/tools/assimp_cmd/ImageExtractor.cpp +++ b/tools/assimp_cmd/ImageExtractor.cpp @@ -364,8 +364,8 @@ int Assimp_Extract (const char* const* params, unsigned int num) if (!tex->mHeight) { m = (1 != fwrite(tex->pcData,tex->mWidth,1,p)) - ? AssimpCmdError::Success - : AssimpCmdExtractError::FailedToExportCompressedTexture; + ? static_cast(AssimpCmdError::Success) + : static_cast(AssimpCmdExtractError::FailedToExportCompressedTexture); } else m = DoExport(tex,p,extension,flags); ::fclose(p);