summaryrefslogtreecommitdiff
path: root/std/wasi/snapshot_preview1.ts
diff options
context:
space:
mode:
Diffstat (limited to 'std/wasi/snapshot_preview1.ts')
-rw-r--r--std/wasi/snapshot_preview1.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/std/wasi/snapshot_preview1.ts b/std/wasi/snapshot_preview1.ts
index f62d93a94..dc081a8dc 100644
--- a/std/wasi/snapshot_preview1.ts
+++ b/std/wasi/snapshot_preview1.ts
@@ -915,7 +915,7 @@ export default class Context {
const view = new DataView(this.memory.buffer);
const offset = entry.handle.seekSync(0, Deno.SeekMode.Current);
- view.setBigUint64(offset_out, offset, true);
+ view.setBigUint64(offset_out, BigInt(offset), true);
return ERRNO_SUCCESS;
}),