Skip to content

Commit

Permalink
Use specific negative assertion for cef window
Browse files Browse the repository at this point in the history
  • Loading branch information
CYBAI committed Jan 25, 2018
1 parent 6e4e318 commit a13a9f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ports/cef/window.rs
Expand Up @@ -564,7 +564,7 @@ pub fn app_wakeup() {
#[cfg(target_os="linux")]
pub fn init_window() {
unsafe {
assert!(XInitThreads() != 0);
assert_ne!(XInitThreads(), 0);
DISPLAY = XOpenDisplay(ptr::null()) as *mut c_void;
}
}
Expand Down

0 comments on commit a13a9f8

Please sign in to comment.