Skip to content

Commit d60e8fc

Browse files
committed
libspa: static dict: Fix incorrect use of platform-specific i8 type for a C char.
This could lead to compilation failures on other platforms, where a C `char` is not defined as a `i8`. The platform-independent `std::os::raw::c_char` is now used instead.
1 parent ca6334d commit d60e8fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libspa/src/dict.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -409,8 +409,8 @@ macro_rules! static_dict {
409409
const ITEMS: &[spa_dict_item] = &[
410410
$(
411411
spa_dict_item {
412-
key: concat!($k, "\0").as_ptr() as *const i8,
413-
value: concat!($v, "\0").as_ptr() as *const i8
412+
key: concat!($k, "\0").as_ptr() as *const std::os::raw::c_char,
413+
value: concat!($v, "\0").as_ptr() as *const std::os::raw::c_char
414414
},
415415
)+
416416
];

0 commit comments

Comments
 (0)