sysjs: update to latest Zig version

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2023-03-11 20:19:33 -07:00
parent 729ffa2d17
commit 47eac0d0c5

View file

@ -142,7 +142,7 @@ pub const Object = struct {
}
pub fn copyBytes(obj: *const Object, bytes: []u8) void {
js.zigCopyBytes(obj.ref, bytes.ptr, bytes.len);
js.zigCopyBytes(obj.ref, bytes.ptr, @intCast(u32, bytes.len));
}
pub fn call(obj: *const Object, fun: []const u8, args: []const Value) Value {
@ -254,7 +254,7 @@ pub fn createUndefined() Value {
const FunType = *const fn (args: Object, args_len: u32, captures: []Value) Value;
pub fn createFunction(fun: FunType, captures: []Value) Function {
return .{ .ref = js.zigCreateFunction(fun, captures.ptr, captures.len) };
return .{ .ref = js.zigCreateFunction(fun, captures.ptr, @intCast(u32, captures.len)) };
}
pub fn constructType(t: []const u8, args: []const Value) Object {