Bug 1187613 - Error: cannot initialize a variable of type 'const CGEventField' with an rvalue of type 'int' if build with 10.11 SDK. r=spohl
authorSteven Michaud <smichaud@pobox.com>
Wed, 09 Sep 2015 17:07:29 -0500
changeset 261599 9dc18f7a238f8636c0a08ac1faff3e07e869f543
parent 261598 2cef846e92e44191b14235f6b02543c47ae2a61a
child 261600 f1fab424b6e06dbd9fd8751103d5a089d973c0f2
push id64777
push usersmichaud@pobox.com
push dateWed, 09 Sep 2015 22:07:56 +0000
treeherdermozilla-inbound@9dc18f7a238f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersspohl
bugs1187613
milestone43.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1187613 - Error: cannot initialize a variable of type 'const CGEventField' with an rvalue of type 'int' if build with 10.11 SDK. r=spohl
widget/cocoa/nsChildView.mm
--- a/widget/cocoa/nsChildView.mm
+++ b/widget/cocoa/nsChildView.mm
@@ -6560,17 +6560,17 @@ HandleEvent(CGEventTapProxy aProxy, CGEv
   CFRunLoopStop(CFRunLoopGetCurrent());
 }
 
 - (void)shutdownAndReleaseCalledOnAnyThread
 {
   [self performSelector:@selector(shutdownAndReleaseCalledOnEventThread) onThread:mThread withObject:nil waitUntilDone:NO];
 }
 
-static const CGEventField kCGWindowNumberField = 51;
+static const CGEventField kCGWindowNumberField = (const CGEventField) 51;
 
 // Called on scroll thread
 - (void)handleEvent:(CGEventRef)cgEvent type:(CGEventType)type
 {
   if (type != kCGEventScrollWheel) {
     return;
   }