File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -102,7 +102,8 @@ type module_info = {
102
102
103
103
104
104
let find_opt
105
- ((sorteds ,whole ) : t ) i (key : string )
105
+ ((sorteds ,whole ) : t )
106
+ (i : int ) (key : string )
106
107
: module_info option =
107
108
let group = sorteds.(i) in
108
109
let i = Ext_string_array. find_sorted group.modules key in
Original file line number Diff line number Diff line change @@ -119,13 +119,14 @@ let oc_cmi buf namespace source =
119
119
When ns is turned on, `B` is interprted as `Ns-B` which is a cyclic dependency,
120
120
it can be errored out earlier
121
121
*)
122
- let find_module db dependent_module is_not_lib_dir (index : Bsb_dir_index.t ) =
122
+ let find_module db dependent_module is_not_lib_dir
123
+ : Bsb_db_decode.module_info option =
123
124
let opt = Bsb_db_decode. find_opt db 0 dependent_module in
124
125
match opt with
125
126
| Some _ -> opt
126
127
| None ->
127
128
if is_not_lib_dir then
128
- Bsb_db_decode. find_opt db (index :> int ) dependent_module
129
+ Bsb_db_decode. find_opt db 1 dependent_module
129
130
else None
130
131
let oc_impl
131
132
(mlast : string )
@@ -163,7 +164,7 @@ let oc_impl
163
164
end
164
165
);
165
166
(match
166
- find_module db dependent_module is_not_lib_dir index
167
+ find_module db dependent_module is_not_lib_dir
167
168
with
168
169
| None -> ()
169
170
| Some ({dir_name; case } ) ->
@@ -225,7 +226,7 @@ let oc_intf
225
226
exit 2
226
227
end
227
228
);
228
- (match find_module db dependent_module is_not_lib_dir index
229
+ (match find_module db dependent_module is_not_lib_dir
229
230
with
230
231
| None -> ()
231
232
| Some {dir_name; case} ->
You can’t perform that action at this time.
0 commit comments