Fix building on targets with unsigned c_char

This commit is contained in:
bjorn3
2025-03-30 16:35:29 +02:00
parent 34c95ea662
commit 8650ac293e
9 changed files with 46 additions and 37 deletions
+1 -1
View File
@@ -466,7 +466,7 @@ pub unsafe extern "C" fn getsubopt(
i = i + 1;
continue;
}
if (*start.offset(len)) == b'=' as i8 {
if (*start.offset(len)) == b'=' as c_char {
*valuep = start.offset(len + 1);
} else if !start.offset(len).is_null() {
i = i + 1;