From 69fa54f61a1caf1139928421624d00307e32d1b3 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Sat, 16 Jan 2021 18:13:00 +0100 Subject: [PATCH] Fixed two MSVC compiler warnings. --- es-core/src/resources/TextureData.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }