Skip to content

Commit

Permalink
Fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fschutt committed Jan 18, 2023
1 parent a483d04 commit 5f38cc9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/emscripten/src/syscalls/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,6 @@ pub fn ___syscall192(mut ctx: FunctionEnvMut<EmEnv>, _which: c_int, mut varargs:
}

/// lseek
#[allow(clippy::unnecessary_cast)]
pub fn ___syscall140(ctx: FunctionEnvMut<EmEnv>, _which: i32, mut varargs: VarArgs) -> i32 {
// -> c_int
debug!("emscripten::___syscall140 (lseek) {}", _which);
Expand All @@ -415,7 +414,7 @@ pub fn ___syscall140(ctx: FunctionEnvMut<EmEnv>, _which: i32, mut varargs: VarAr
let result_ptr_value: WasmPtr<i64> = varargs.get(&ctx);
let whence: i32 = varargs.get(&ctx);
let offset = offset_low;
let ret = unsafe { lseek(fd, offset as _, whence) as i64 };
let ret = unsafe { lseek(fd, offset as _, whence) };
let memory = ctx.data().memory(0);
let memory = memory.view(&ctx);

Expand Down

0 comments on commit 5f38cc9

Please sign in to comment.