diff --git a/lib/emscripten/src/syscalls/mod.rs b/lib/emscripten/src/syscalls/mod.rs index 5ee7c321e08..34ba9081893 100644 --- a/lib/emscripten/src/syscalls/mod.rs +++ b/lib/emscripten/src/syscalls/mod.rs @@ -441,7 +441,7 @@ pub fn ___syscall140(ctx: &mut Ctx, _which: i32, mut varargs: VarArgs) -> i32 { let result_ptr_value: WasmPtr = 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);