void-packages/srcpkgs/leftwm/patches/fix-arm-builds.patch
2022-01-15 15:28:21 +01:00

31 lines
1.4 KiB
Diff

From 876216bcc0398fb869240cd51d5ea0d12ba699b1 Mon Sep 17 00:00:00 2001
From: pkubaj <pkubaj@anongoth.pl>
Date: Tue, 14 Dec 2021 06:37:11 +0000
Subject: [PATCH] Fix build errors on architectures with u8 (#623)
---
.../src/display_servers/xlib_display_server/xwrap/getters.rs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/leftwm-core/src/display_servers/xlib_display_server/xwrap/getters.rs b/leftwm-core/src/display_servers/xlib_display_server/xwrap/getters.rs
index 2fe20d3a..b8a90495 100644
--- a/leftwm-core/src/display_servers/xlib_display_server/xwrap/getters.rs
+++ b/leftwm-core/src/display_servers/xlib_display_server/xwrap/getters.rs
@@ -3,7 +3,7 @@ use super::{Screen, WindowHandle, XlibError, MAX_PROPERTY_VALUE_LEN};
use crate::models::{DockArea, WindowState, WindowType, XyhwChange};
use crate::XWrap;
use std::ffi::CString;
-use std::os::raw::{c_int, c_long, c_uchar, c_uint, c_ulong};
+use std::os::raw::{c_char, c_int, c_long, c_uchar, c_uint, c_ulong};
use std::slice;
use x11_dl::xlib;
@@ -575,7 +575,7 @@ impl XWrap {
if status == 0 {
return Err(XlibError::FailedStatus);
}
- if let Ok(s) = CString::from_raw(text_prop.value.cast::<i8>()).into_string() {
+ if let Ok(s) = CString::from_raw(text_prop.value.cast::<c_char>()).into_string() {
return Ok(s);
}
};