mirror of
https://github.com/servo/servo.git
synced 2025-08-04 05:00:08 +01:00
Use specific negative assertion for cef window
This commit is contained in:
parent
6e4e318b24
commit
a13a9f8f8d
1 changed files with 1 additions and 1 deletions
|
@ -564,7 +564,7 @@ pub fn app_wakeup() {
|
||||||
#[cfg(target_os="linux")]
|
#[cfg(target_os="linux")]
|
||||||
pub fn init_window() {
|
pub fn init_window() {
|
||||||
unsafe {
|
unsafe {
|
||||||
assert!(XInitThreads() != 0);
|
assert_ne!(XInitThreads(), 0);
|
||||||
DISPLAY = XOpenDisplay(ptr::null()) as *mut c_void;
|
DISPLAY = XOpenDisplay(ptr::null()) as *mut c_void;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue