diff --git a/build/macosx/platform_specific_code/juce_mac_NSViewComponentPeer.mm b/build/macosx/platform_specific_code/juce_mac_NSViewComponentPeer.mm index e40c19dd73..ed4b9f5cec 100644 --- a/build/macosx/platform_specific_code/juce_mac_NSViewComponentPeer.mm +++ b/build/macosx/platform_specific_code/juce_mac_NSViewComponentPeer.mm @@ -1321,7 +1321,7 @@ void NSViewComponentPeer::drawRect (NSRect r) context.setOrigin (originX, originY); const NSRect* rects = 0; - int numRects = 0; + NSInteger numRects = 0; [view getRectsBeingDrawn: &rects count: &numRects]; RectangleList clip; diff --git a/juce_amalgamated.cpp b/juce_amalgamated.cpp index 7851ac47af..beb42cb4f4 100644 --- a/juce_amalgamated.cpp +++ b/juce_amalgamated.cpp @@ -267136,7 +267136,8 @@ void NSViewComponentPeer::drawRect (NSRect r) context.setOrigin (originX, originY); const NSRect* rects = 0; - int numRects = 0; + NSInteger numRects = 0; + [view getRectsBeingDrawn: &rects count: &numRects]; RectangleList clip;