Skip to content

Commit

Permalink
Merge branch 'master' into zig-0.12.0-wasm
Browse files Browse the repository at this point in the history
  • Loading branch information
floooh committed Jan 15, 2024
2 parents 575294b + ddcaddc commit e5104b4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/sokol/debugtext.zig
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,19 @@ pub const Writer = struct {
putc(byte);
}
}
pub fn writeByteNTimes(self: Writer, byte: u8, n: u64) Error!void {
pub fn writeByteNTimes(self: Writer, byte: u8, n: usize) Error!void {
_ = self;
var i: u64 = 0;
while (i < n) : (i += 1) {
putc(byte);
}
}
pub fn writeBytesNTimes(self: Writer, bytes: []const u8, n: usize) Error!void {
var i: usize = 0;
while (i < n) : (i += 1) {
try self.writeAll(bytes);
}
}
};
// std.fmt-style formatted print
pub fn print(comptime fmt: anytype, args: anytype) void {
Expand Down

0 comments on commit e5104b4

Please sign in to comment.