Fix assertion failure

reproduces if building Three.js 10 times in runtime
This commit is contained in:
Jarred Sumner
2023-04-25 22:21:24 -07:00
parent f42663ce9a
commit 3e374c0ee4

View File

@@ -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