diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2014-11-06 15:40:16 +0100 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2014-11-06 15:40:16 +0100 |
commit | 37afa5af5b336a30d5ead6f6755d449a4b93a7a2 (patch) | |
tree | aca56ea8f275867a060d78fc56c1c0f4d780596e /platform | |
parent | 618a4a5785e07b9663111d8d7f4b33c0f6be0c55 (diff) | |
download | qtlocation-mapboxgl-37afa5af5b336a30d5ead6f6755d449a4b93a7a2.tar.gz |
explicitly cast to 32 bit integer
Diffstat (limited to 'platform')
-rw-r--r-- | platform/darwin/image.mm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/darwin/image.mm b/platform/darwin/image.mm index 50c871533d..b8df3c403e 100644 --- a/platform/darwin/image.mm +++ b/platform/darwin/image.mm @@ -93,8 +93,8 @@ Image::Image(const std::string &source_data) { return; } - width = CGImageGetWidth(image); - height = CGImageGetHeight(image); + width = uint32_t(CGImageGetWidth(image)); + height = uint32_t(CGImageGetHeight(image)); CGRect rect = {{ 0, 0 }, { static_cast<CGFloat>(width), static_cast<CGFloat>(height) }}; img = ::std::unique_ptr<char[]>(new char[width * height * 4]()); |