diff --git a/es-core/src/resources/TextureData.cpp b/es-core/src/resources/TextureData.cpp index 27a6e2e33..c195fc000 100644 --- a/es-core/src/resources/TextureData.cpp +++ b/es-core/src/resources/TextureData.cpp @@ -227,7 +227,7 @@ size_t TextureData::width() // If it's an SVG image, the size was correctly set to the scaled-up values during the // rasterization, so only multiply by the scale factor if it's a raster file. if (!mScalable) - return mWidth * mScaleDuringLoad; + return static_cast(mWidth * mScaleDuringLoad); else return mWidth; } @@ -237,7 +237,7 @@ size_t TextureData::height() if (mHeight == 0) load(); if (!mScalable) - return mHeight * mScaleDuringLoad; + return static_cast(mHeight * mScaleDuringLoad); else return mHeight; }