aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/js_printer.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/js_printer.zig b/src/js_printer.zig
index 74dc14777..3888f6eb6 100644
--- a/src/js_printer.zig
+++ b/src/js_printer.zig
@@ -4330,7 +4330,7 @@ pub const BufferWriter = struct {
return @ptrCast([*]u8, &ctx.buffer.list.items.ptr[ctx.buffer.list.items.len]);
}
pub fn advanceBy(ctx: *BufferWriter, count: u32) void {
- if (comptime Environment.isDebug) std.debug.assert(ctx.buffer.list.items.len + count < ctx.buffer.list.capacity);
+ if (comptime Environment.isDebug) std.debug.assert(ctx.buffer.list.items.len + count <= ctx.buffer.list.capacity);
ctx.buffer.list.items = ctx.buffer.list.items.ptr[0 .. ctx.buffer.list.items.len + count];
}