diff options
-rw-r--r-- | platform/default/png_reader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/default/png_reader.cpp b/platform/default/png_reader.cpp index d694f43405..29ef3058e1 100644 --- a/platform/default/png_reader.cpp +++ b/platform/default/png_reader.cpp @@ -98,7 +98,7 @@ PremultipliedImage decodePNG(const uint8_t* data, size_t size) { int color_type = 0; png_get_IHDR(png_ptr, info_ptr, &width, &height, &bit_depth, &color_type, nullptr, nullptr, nullptr); - UnassociatedImage image({ width, height }); + UnassociatedImage image({ static_cast<uint32_t>(width), static_cast<uint32_t>(height) }); if (color_type == PNG_COLOR_TYPE_PALETTE) png_set_expand(png_ptr); |