From 65e5be1dcf5eded963165709b28a94e50ab25058 Mon Sep 17 00:00:00 2001 From: derpeter Date: Thu, 3 Sep 2020 18:16:07 +0200 Subject: [PATCH] =?UTF-8?q?change=20pointer=20type=20to=20plattform=20spec?= =?UTF-8?q?ific=20type=20as=20the=20cast=20is=20otherwi=E2=80=A6=20(#212)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * change pointer type to plattform specific type as the cast is otherwise broken on ARM (and maybe other) platform. * shrink the line changed in previous commit to make linter happy Co-authored-by: Peter Hasse --- src/os/posix/x11.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/os/posix/x11.rs b/src/os/posix/x11.rs index fee5c53..0cd1916 100644 --- a/src/os/posix/x11.rs +++ b/src/os/posix/x11.rs @@ -420,8 +420,11 @@ impl Window { } if opts.borderless { - let hints_property = - (d.lib.XInternAtom)(d.display, "_MOTIF_WM_HINTS\0" as *const _ as *const i8, 0); + let hints_property = (d.lib.XInternAtom)( + d.display, + "_MOTIF_WM_HINTS\0" as *const _ as *const c_char, + 0, + ); assert!(hints_property != 0); let mut hints: MwmHints = std::mem::zeroed(); hints.flags = 2;