From 3e374c0ee4a77264fce7160e7887187dd3ebda34 Mon Sep 17 00:00:00 2001 From: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Date: Tue, 25 Apr 2023 22:21:24 -0700 Subject: Fix assertion failure reproduces if building Three.js 10 times in runtime --- src/sourcemap/sourcemap.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/sourcemap/sourcemap.zig') 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 -- cgit v1.2.3