aboutsummaryrefslogtreecommitdiff
path: root/src/node_module_bundle.zig
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <jarred@jarredsumner.com> 2021-08-29 21:48:14 -0700
committerGravatar Jarred Sumner <jarred@jarredsumner.com> 2021-08-29 21:48:14 -0700
commitbd9f137b1bfb5bc3b215515ff9305e70a638daf9 (patch)
treee2a252e2b2478b6b1fb7cd23eb90e4da9c5bc8cd /src/node_module_bundle.zig
parent34792c15f188d0c480d64022a9d3a67a89497c70 (diff)
downloadbun-bd9f137b1bfb5bc3b215515ff9305e70a638daf9.tar.gz
bun-bd9f137b1bfb5bc3b215515ff9305e70a638daf9.tar.zst
bun-bd9f137b1bfb5bc3b215515ff9305e70a638daf9.zip
latest
Former-commit-id: 096ec1222ad723d006b0151f10cb0c1b95e2bfd3
Diffstat (limited to 'src/node_module_bundle.zig')
-rw-r--r--src/node_module_bundle.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_module_bundle.zig b/src/node_module_bundle.zig
index 9af0f27de..979c1bba5 100644
--- a/src/node_module_bundle.zig
+++ b/src/node_module_bundle.zig
@@ -122,7 +122,7 @@ pub const NodeModuleBundle = struct {
// Assert we have enough room to add another package
std.debug.assert(end < remaining_names.len);
entry.value_ptr.* = prev_package_ids_for_name.ptr[0..end];
- entry.value_ptr.*[end] = package_id;
+ entry.value_ptr.*[end - 1] = package_id;
} else {
prev_package_ids_for_name = remaining_names[0..1];
prev_package_ids_for_name[0] = package_id;