Skip to content

Commit a3196f2

Browse files
committed
wasi_defs: fix filestat atim/mtim/ctim offsets
1 parent 70613f0 commit a3196f2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/wasi_defs.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -286,9 +286,9 @@ export class Filestat {
286286
view.setUint8(ptr + 16, this.filetype);
287287
view.setBigUint64(ptr + 24, this.nlink, true);
288288
view.setBigUint64(ptr + 32, this.size, true);
289-
view.setBigUint64(ptr + 38, this.atim, true);
290-
view.setBigUint64(ptr + 46, this.mtim, true);
291-
view.setBigUint64(ptr + 52, this.ctim, true);
289+
view.setBigUint64(ptr + 40, this.atim, true);
290+
view.setBigUint64(ptr + 48, this.mtim, true);
291+
view.setBigUint64(ptr + 56, this.ctim, true);
292292
}
293293
}
294294

0 commit comments

Comments
 (0)