From 2f14bead31896b3ea969ebf34b2ca2b1521544f0 Mon Sep 17 00:00:00 2001 From: Neil Hodgson Date: Thu, 20 Feb 2014 13:58:00 +1100 Subject: Check that argument is of correct type. --- cocoa/PlatCocoa.mm | 1 + 1 file changed, 1 insertion(+) diff --git a/cocoa/PlatCocoa.mm b/cocoa/PlatCocoa.mm index 28c0f8107..da87a7b13 100644 --- a/cocoa/PlatCocoa.mm +++ b/cocoa/PlatCocoa.mm @@ -1179,6 +1179,7 @@ void Window::SetPosition(PRectangle rc) else { // NSWindow + PLATFORM_ASSERT([idWin isKindOfClass: [NSWindow class]]); NSWindow* win = reinterpret_cast(idWin); int screenHeight = ScreenMax(win); NSRect nsrc = NSMakeRect(rc.left, screenHeight - rc.bottom, -- cgit v1.2.3