From 241a606303ea56321dcd975beca3e49bb5f1ca1f Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Wed, 30 Jan 2013 11:19:56 +1100 Subject: Type casts so will build in std=c++11 mode. --- cocoa/PlatCocoa.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cocoa/PlatCocoa.mm') 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(width), static_cast(height)}; NSImage *img = [[[NSImage alloc] initWithSize: sz] autorelease]; NSBitmapImageRep *bitmapRep = [[NSBitmapImageRep alloc] initWithCGImage: imageRef]; [img addRepresentation: bitmapRep]; -- cgit v1.2.3