diff options
author | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2017-04-29 11:04:01 +0300 |
---|---|---|
committer | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2017-05-02 12:54:37 +0300 |
commit | d0239df39dd7c30161f8cad026a70039e7082bb1 (patch) | |
tree | 67ff2a9042685d4918ec7f33abb9eaf68d3090db /platform/default | |
parent | d9d55f93c110b7a63a8c1e21d31077f57ac7fd65 (diff) | |
download | qtlocation-mapboxgl-d0239df39dd7c30161f8cad026a70039e7082bb1.tar.gz |
[core] Fix compilation error with older libpng versions
Diffstat (limited to 'platform/default')
-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); |