Skip to content

Commit

Permalink
Fixed lseek error in Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
syrusakbary committed Jun 27, 2019
1 parent 6aec631 commit 6cc41f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/emscripten/src/syscalls/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ pub fn ___syscall140(ctx: &mut Ctx, _which: i32, mut varargs: VarArgs) -> i32 {
let result_ptr_value: WasmPtr<i64> = varargs.get(ctx);
let whence: i32 = varargs.get(ctx);
let offset = offset_low as off_t;
let ret = unsafe { lseek(fd, offset, whence) };
let ret = unsafe { lseek(fd, offset, whence) as i64 };

let result_ptr = result_ptr_value.deref(ctx.memory(0)).unwrap();
result_ptr.set(ret);
Expand Down

0 comments on commit 6cc41f8

Please sign in to comment.