From c5902bac936edd563bac5032c47a5040ee5c7d41 Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Sat, 27 Jun 2015 17:31:38 +0200 Subject: [PATCH] Remove the negate_unsigned feature gate from CEF. There's no real reason to use it. --- ports/cef/lib.rs | 1 - ports/cef/window.rs | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/ports/cef/lib.rs b/ports/cef/lib.rs index 8d0bd76648f..f92b5adeaf8 100644 --- a/ports/cef/lib.rs +++ b/ports/cef/lib.rs @@ -10,7 +10,6 @@ #![feature(filling_drop)] #![feature(iter_arith)] #![feature(link_args)] -#![feature(negate_unsigned)] #![feature(plugin)] #![feature(str_utf16)] #![feature(unicode)] diff --git a/ports/cef/window.rs b/ports/cef/window.rs index 0d404268ada..a25b48e3681 100644 --- a/ports/cef/window.rs +++ b/ports/cef/window.rs @@ -51,7 +51,7 @@ pub struct Window { #[cfg(target_os="macos")] fn load_gl() { - const RTLD_DEFAULT: *mut c_void = (-2) as *mut c_void; + const RTLD_DEFAULT: *mut c_void = (-2isize) as usize as *mut c_void; extern { fn dlsym(handle: *mut c_void, symbol: *const c_char) -> *mut c_void;