aboutsummaryrefslogtreecommitdiff
path: root/src/string_immutable.zig
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <jarred@jarredsumner.com> 2023-03-20 05:57:23 -0700
committerGravatar GitHub <noreply@github.com> 2023-03-20 05:57:23 -0700
commit1a25af5e3dde2389c747e18d565cedf39c79a43d (patch)
treeea07c80c6a6d30a78d1ef930c4a9249a84a40cb8 /src/string_immutable.zig
parent343721627ee65caf504d67c5046b0da94bfeba72 (diff)
downloadbun-1a25af5e3dde2389c747e18d565cedf39c79a43d.tar.gz
bun-1a25af5e3dde2389c747e18d565cedf39c79a43d.tar.zst
bun-1a25af5e3dde2389c747e18d565cedf39c79a43d.zip
Implement simple `workspaces` glob support in bun install (#2435)
* [bun install] Implement `packages/*`-style globs * Fix incorrect assertion * :nail_care: * remove extraneous console.log * Fix pointer to stack memory * Add a test with a scoped package name from a glob workspace * Fixup --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
Diffstat (limited to 'src/string_immutable.zig')
-rw-r--r--src/string_immutable.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/string_immutable.zig b/src/string_immutable.zig
index d393577fc..321abb9f7 100644
--- a/src/string_immutable.zig
+++ b/src/string_immutable.zig
@@ -3192,7 +3192,7 @@ pub fn indexOfCharZ(sliceZ: [:0]const u8, char: u8) ?u63 {
const pos = @ptrToInt(ptr) - @ptrToInt(sliceZ.ptr);
if (comptime Environment.allow_assert)
- std.debug.assert(@ptrToInt(sliceZ.ptr) >= @ptrToInt(ptr) and
+ std.debug.assert(@ptrToInt(sliceZ.ptr) <= @ptrToInt(ptr) and
@ptrToInt(ptr) < @ptrToInt(sliceZ.ptr + sliceZ.len) and
pos <= sliceZ.len);