explicitly cast to 32 bit integer

This commit is contained in:
Konstantin Käfer
2014-11-06 15:40:16 +01:00
parent 618a4a5785
commit 37afa5af5b

View File

@@ -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]());