Skip to content

Commit efd211e

Browse files
author
Julian Orth
committed
fix libstd::os
1 parent 216e5a8 commit efd211e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/os.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ pub fn getenv_as_bytes(n: &str) -> Option<Vec<u8>> {
371371
if s.is_null() {
372372
None
373373
} else {
374-
Some(CString::new(s as *const i8, false).as_bytes_no_nul().to_vec())
374+
Some(CString::new(s as *const _, false).as_bytes_no_nul().to_vec())
375375
}
376376
})
377377
}

0 commit comments

Comments
 (0)