Skip to content

Commit

Permalink
Don't declare something a long and pass it as a size_t
Browse files Browse the repository at this point in the history
The two are not the same on Win64, causing type intersection to sometimes return incorrect answers (not fun!).
  • Loading branch information
Keno committed Dec 2, 2015
1 parent 88527fa commit b0e19c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jltypes.c
Original file line number Diff line number Diff line change
Expand Up @@ -833,7 +833,7 @@ static jl_value_t *jl_type_intersect(jl_value_t *a, jl_value_t *b,
if (b == (jl_value_t*)jl_any_type || b == jl_ANY_flag) return a;
// tuple
if (jl_is_tuple_type(a)) {
long alen = (long)jl_nparams(a);
size_t alen = jl_nparams(a);
jl_value_t *temp=NULL;
JL_GC_PUSH2(&b, &temp);
if (jl_is_ntuple_type(b)) {
Expand Down

0 comments on commit b0e19c8

Please sign in to comment.