aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-04-25 22:21:24 -0700
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-04-25 22:21:24 -0700
commit3e374c0ee4a77264fce7160e7887187dd3ebda34 (patch)
tree2db9436fc758cf9aa26e9aed452b2c0d0f21b2c5
parentf42663ce9acaaecf758349acae0c77aa6cac4e38 (diff)
downloadbun-3e374c0ee4a77264fce7160e7887187dd3ebda34.tar.gz
bun-3e374c0ee4a77264fce7160e7887187dd3ebda34.tar.zst
bun-3e374c0ee4a77264fce7160e7887187dd3ebda34.zip
Fix assertion failure
reproduces if building Three.js 10 times in runtime
-rw-r--r--src/sourcemap/sourcemap.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sourcemap/sourcemap.zig b/src/sourcemap/sourcemap.zig
index b9d19b40d..f7a92a9c1 100644
--- a/src/sourcemap/sourcemap.zig
+++ b/src/sourcemap/sourcemap.zig
@@ -698,7 +698,7 @@ pub const LineOffsetTable = struct {
if (c > 0x7F and columns_for_non_ascii.items.len == 0) {
std.debug.assert(@ptrToInt(
remaining.ptr,
- ) > @ptrToInt(
+ ) >= @ptrToInt(
contents.ptr,
));
// we have a non-ASCII character, so we need to keep track of the