Skip to content

Commit 59b57cc

Browse files
committed
fix compiler warnings
1 parent 9d4d36c commit 59b57cc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/gf.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -1217,7 +1217,7 @@ static int get_method_unspec_list(jl_typemap_entry_t *def, void *closure)
12171217
for (i = 0, l = jl_array_len(spec); i < l; i++) {
12181218
jl_value_t *li = jl_cellref(spec, i);
12191219
if (jl_is_lambda_info(li) && !((jl_lambda_info_t*)li)->inferred)
1220-
jl_cell_1d_push(closure, li);
1220+
jl_cell_1d_push((jl_array_t*)closure, li);
12211221
}
12221222
return 1;
12231223
}
@@ -2286,7 +2286,7 @@ static void jl_compile_all(void)
22862286
static int _precompile_enq_tfunc(jl_typemap_entry_t *l, void *closure)
22872287
{
22882288
if (jl_is_lambda_info(l->func.value) && !l->func.linfo->functionID)
2289-
jl_cell_1d_push(closure, (jl_value_t*)l->func.linfo->specTypes);
2289+
jl_cell_1d_push((jl_array_t*)closure, (jl_value_t*)l->func.linfo->specTypes);
22902290
return 1;
22912291
}
22922292

@@ -2299,7 +2299,7 @@ static int _precompile_enq_spec(jl_typemap_entry_t *def, void *closure)
22992299
for (i = 0, l = jl_array_len(spec); i < l; i++) {
23002300
jl_value_t *li = jl_cellref(spec, i);
23012301
if (jl_is_lambda_info(li) && !((jl_lambda_info_t*)li)->functionID)
2302-
jl_cell_1d_push(closure, (jl_value_t*)((jl_lambda_info_t*)li)->specTypes);
2302+
jl_cell_1d_push((jl_array_t*)closure, (jl_value_t*)((jl_lambda_info_t*)li)->specTypes);
23032303
}
23042304
jl_typemap_visitor(def->func.method->tfunc, _precompile_enq_tfunc, closure);
23052305
return 1;

0 commit comments

Comments
 (0)