mirror of
https://github.com/fluencelabs/wasmer
synced 2024-12-13 22:25:40 +00:00
fix compiler errors for debug build
This commit is contained in:
parent
423f154177
commit
9619019baf
@ -425,10 +425,6 @@ pub fn ___syscall142(ctx: &mut Ctx, _which: c_int, mut varargs: VarArgs) -> c_in
|
||||
let readfds_ptr = emscripten_memory_pointer!(ctx.memory(0), readfds) as _;
|
||||
let writefds_ptr = emscripten_memory_pointer!(ctx.memory(0), writefds) as _;
|
||||
let result = unsafe { libc::select(nfds, readfds_ptr, writefds_ptr, 0 as _, 0 as _) };
|
||||
debug!(
|
||||
"set read descriptors AFTER select: {:?}",
|
||||
set_file_descriptors
|
||||
);
|
||||
debug!("select returns {}", result);
|
||||
result
|
||||
}
|
||||
|
@ -205,7 +205,7 @@ pub fn ___syscall196(ctx: &mut Ctx, _which: i32, mut varargs: VarArgs) -> i32 {
|
||||
buf_ptr,
|
||||
result,
|
||||
unsafe { std::ffi::CStr::from_ptr(path).to_str().unwrap() },
|
||||
Error::last_os_error(),
|
||||
std::io::Error::last_os_error(),
|
||||
);
|
||||
result
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user