aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar dave caruso <me@paperdave.net> 2023-09-02 01:39:39 -0700
committerGravatar GitHub <noreply@github.com> 2023-09-02 01:39:39 -0700
commit5c43744bce358f132a63d5002baffd7647d47a76 (patch)
treed848f5b0530b21b1327f0349866743c291559216
parentdb2faf7c5b665f1f93cc3d1f159e5932c310b992 (diff)
downloadbun-5c43744bce358f132a63d5002baffd7647d47a76.tar.gz
bun-5c43744bce358f132a63d5002baffd7647d47a76.tar.zst
bun-5c43744bce358f132a63d5002baffd7647d47a76.zip
workaround a zig bug (#4440)
-rw-r--r--src/bun.js/node/types.zig7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/bun.js/node/types.zig b/src/bun.js/node/types.zig
index efd6d806b..d9f725eaa 100644
--- a/src/bun.js/node/types.zig
+++ b/src/bun.js/node/types.zig
@@ -1321,7 +1321,7 @@ pub fn StatType(comptime Big: bool) type {
}
};
- return struct {
+ return extern struct {
pub usingnamespace if (Big) JSC.Codegen.JSBigIntStats else JSC.Codegen.JSStats;
// Stats stores these as i32, but BigIntStats stores all of these as i64
@@ -1332,11 +1332,12 @@ pub fn StatType(comptime Big: bool) type {
uid: Int,
gid: Int,
rdev: Int,
- // Always store size as a 64-bit integer
- size: i64,
blksize: Int,
blocks: Int,
+ // Always store size as a 64-bit integer
+ size: i64,
+
// _ms is either a float if Small, or a 64-bit integer if Big
atime_ms: Float,
mtime_ms: Float,