Skip to content

Commit

Permalink
Use JL_GC_PUSH1 rather than varargs JL_GC_PUSH
Browse files Browse the repository at this point in the history
VA_NARG is not defined for MSVC
  • Loading branch information
tkelman committed Aug 22, 2015
1 parent 98af54b commit 9fb3a9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dump.c
Original file line number Diff line number Diff line change
Expand Up @@ -1024,7 +1024,7 @@ void jl_serialize_dependency_list(ios_t *s)
jl_array_t *udeps = deps && unique_func ? (jl_array_t *) jl_apply((jl_function_t*)unique_func, (jl_value_t**)&deps, 1) : NULL;

if (udeps) {
JL_GC_PUSH(&udeps);
JL_GC_PUSH1(&udeps);
size_t l = jl_array_len(udeps);
for (size_t i=0; i < l; i++) {
jl_value_t *dep = jl_fieldref(jl_cellref(udeps, i), 0);
Expand Down

0 comments on commit 9fb3a9e

Please sign in to comment.