fix build on platforms where std::os::raw::c_char is not i8

c_char may be i8 or u8, depending on target platform: https://doc.rust-lang.org/std/os/raw/type.c_char.html
This commit is contained in:
lifning 2021-07-26 20:51:11 -07:00
parent efc0463302
commit d5e9f34b6a

View File

@ -201,8 +201,7 @@ fn index(error: &Error) -> usize {
} }
// XXX: the length has to be synced with the number of errors // XXX: the length has to be synced with the number of errors
static mut STRINGS: [[c_char; AV_ERROR_MAX_STRING_SIZE]; 27] = static mut STRINGS: [[c_char; AV_ERROR_MAX_STRING_SIZE]; 27] = [[0; AV_ERROR_MAX_STRING_SIZE]; 27];
[[0_i8; AV_ERROR_MAX_STRING_SIZE]; 27];
pub fn register_all() { pub fn register_all() {
unsafe { unsafe {