diff options
author | nyamatongwe <nyamatongwe@gmail.com> | 2013-01-30 11:19:56 +1100 |
---|---|---|
committer | nyamatongwe <nyamatongwe@gmail.com> | 2013-01-30 11:19:56 +1100 |
commit | c9be849f2ed9a972c9e0a7d2eaa89593fc375a2c (patch) | |
tree | 56088c49e6995dcc54c0b287cce4f6ef86517ff1 /cocoa/PlatCocoa.mm | |
parent | a829b2334bda5567113d9c63e91ceb041ed99f34 (diff) | |
download | scintilla-mirror-c9be849f2ed9a972c9e0a7d2eaa89593fc375a2c.tar.gz |
Type casts so will build in std=c++11 mode.
Diffstat (limited to 'cocoa/PlatCocoa.mm')
-rw-r--r-- | cocoa/PlatCocoa.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cocoa/PlatCocoa.mm b/cocoa/PlatCocoa.mm index a3d5ac17b..901ce4f7d 100644 --- a/cocoa/PlatCocoa.mm +++ b/cocoa/PlatCocoa.mm @@ -1793,7 +1793,7 @@ void ListBoxImpl::RegisterImage(int type, const char* xpm_data) void ListBoxImpl::RegisterRGBAImage(int type, int width, int height, const unsigned char *pixelsImage) { CGImageRef imageRef = ImageCreateFromRGBA(width, height, pixelsImage, false); - NSSize sz = {width, height}; + NSSize sz = {static_cast<CGFloat>(width), static_cast<CGFloat>(height)}; NSImage *img = [[[NSImage alloc] initWithSize: sz] autorelease]; NSBitmapImageRep *bitmapRep = [[NSBitmapImageRep alloc] initWithCGImage: imageRef]; [img addRepresentation: bitmapRep]; |