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 a54476b commit e7f0882Copy full SHA for e7f0882
src/test/run-pass/c-stack-returning-int64.rs
@@ -20,11 +20,11 @@ mod libc {
20
}
21
22
fn atol(s: ~str) -> int {
23
- s.as_imm_buf(|x, _len| unsafe { libc::atol(x) })
+ s.to_c_str().with_ref(|x| unsafe { libc::atol(x as *u8) })
24
25
26
fn atoll(s: ~str) -> i64 {
27
- s.as_imm_buf(|x, _len| unsafe { libc::atoll(x) })
+ s.to_c_str().with_ref(|x| unsafe { libc::atoll(x as *u8) })
28
29
30
pub fn main() {
0 commit comments