mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
temp fix for wasm build (see desc)
src/api/schema.zig is an autogen'd file by peechy, it is currently impossible to generate this correct file with current peechy version a manually patched peechy was used for this version of the file commited until peechy is properly updated, please avoid running `make wasm` otherwise you will break the wasm build compilation
This commit is contained in:
@@ -69,7 +69,7 @@ pub const Reader = struct {
|
||||
return try this.read(length);
|
||||
},
|
||||
u16, u32, i8, i16, i32 => {
|
||||
return std.mem.readIntSliceNative(T, this.read(length * @sizeOf(T)));
|
||||
return std.mem.readInt(T, this.read(length * @sizeOf(T))[0 .. length * @sizeOf(T)], @import("builtin").cpu.arch.endian());
|
||||
},
|
||||
[:0]const u8, []const u8 => {
|
||||
var i: u32 = 0;
|
||||
@@ -121,7 +121,7 @@ pub const Reader = struct {
|
||||
pub inline fn readInt(this: *Self, comptime T: type) !T {
|
||||
var slice = try this.read(@sizeOf(T));
|
||||
|
||||
return std.mem.readIntSliceNative(T, slice);
|
||||
return std.mem.readInt(T, slice[0..@sizeOf(T)], @import("builtin").cpu.arch.endian());
|
||||
}
|
||||
|
||||
pub inline fn readBool(this: *Self) !bool {
|
||||
@@ -147,7 +147,7 @@ pub const Reader = struct {
|
||||
return try this.readArray([]u8);
|
||||
},
|
||||
u16, u32, i8, i16, i32 => {
|
||||
return std.mem.readIntSliceNative(T, try this.read(@sizeOf(T)));
|
||||
return std.mem.readInt(T, (try this.read(@sizeOf(T)))[0..@sizeOf(T)], @import("builtin").cpu.arch.endian());
|
||||
},
|
||||
else => {
|
||||
switch (comptime @typeInfo(T)) {
|
||||
|
||||
Submodule src/deps/mimalloc updated: 7968d42850...011b62a66b
Submodule src/deps/zlib updated: 8856740263...886098f3f3
Reference in New Issue
Block a user