We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b2db02 commit b0b05a5Copy full SHA for b0b05a5
src/strchr.rs
@@ -10,7 +10,7 @@ use crate::{CChar, CInt};
10
pub unsafe extern "C" fn strchr(haystack: *const CChar, needle: CInt) -> *const CChar {
11
for idx in 0.. {
12
let ptr = haystack.offset(idx);
13
- if needle == (*ptr) as i32 {
+ if needle == (*ptr) as CInt {
14
return ptr;
15
}
16
if (*ptr) == 0 {
0 commit comments