From 37afa5af5b336a30d5ead6f6755d449a4b93a7a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20Ka=CC=88fer?= Date: Thu, 6 Nov 2014 15:40:16 +0100 Subject: [PATCH] explicitly cast to 32 bit integer --- platform/darwin/image.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/darwin/image.mm b/platform/darwin/image.mm index 50c871533..b8df3c403 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(width), static_cast(height) }}; img = ::std::unique_ptr(new char[width * height * 4]());