mirror of
https://github.com/ziglang/zig.git
synced 2025-12-27 00:23:22 +00:00
std.Target: Fix long double alignment for wasm(32,64)-emscripten-*.
This commit is contained in:
parent
6cd67cec67
commit
7fe219998f
@ -3156,6 +3156,13 @@ pub fn cTypeAlignment(target: Target, c_type: CType) u16 {
|
||||
},
|
||||
else => {},
|
||||
},
|
||||
.wasm32, .wasm64 => switch (target.os.tag) {
|
||||
.emscripten => switch (c_type) {
|
||||
.longdouble => return 8,
|
||||
else => {},
|
||||
},
|
||||
else => {},
|
||||
},
|
||||
else => {},
|
||||
}
|
||||
|
||||
@ -3285,6 +3292,13 @@ pub fn cTypePreferredAlignment(target: Target, c_type: CType) u16 {
|
||||
else => {},
|
||||
},
|
||||
},
|
||||
.wasm32, .wasm64 => switch (target.os.tag) {
|
||||
.emscripten => switch (c_type) {
|
||||
.longdouble => return 8,
|
||||
else => {},
|
||||
},
|
||||
else => {},
|
||||
},
|
||||
else => {},
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user