From 8a263414572d8ed4d771461de2fdbd9f7e549a75 Mon Sep 17 00:00:00 2001 From: cyclopsian <43323938+cyclopsian@users.noreply.github.com> Date: Sun, 20 Oct 2019 12:31:00 +0000 Subject: Fix XEmbed compilation error on 32-bit platforms --- alacritty/src/window.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'alacritty/src') diff --git a/alacritty/src/window.rs b/alacritty/src/window.rs index 28ef4480..1d4ef612 100644 --- a/alacritty/src/window.rs +++ b/alacritty/src/window.rs @@ -15,6 +15,7 @@ use std::convert::From; #[cfg(not(any(target_os = "macos", windows)))] use std::ffi::c_void; use std::fmt; +use std::os::raw::c_ulong; use glutin::dpi::{LogicalPosition, LogicalSize, PhysicalPosition, PhysicalSize}; use glutin::event_loop::EventLoop; @@ -392,7 +393,7 @@ impl Window { } #[cfg(not(any(target_os = "macos", windows)))] -fn x_embed_window(window: &GlutinWindow, parent_id: u64) { +fn x_embed_window(window: &GlutinWindow, parent_id: c_ulong) { let (xlib_display, xlib_window) = match (window.xlib_display(), window.xlib_window()) { (Some(display), Some(window)) => (display, window), _ => return, -- cgit