Skip to content

Commit

Permalink
fix another pre-existing bug, this time in jl_typemap_assoc_exact com…
Browse files Browse the repository at this point in the history
…puation of args[1-offs]
  • Loading branch information
vtjnash committed Apr 12, 2016
1 parent a8d8ded commit 3d9c014
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gf.c
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,7 @@ static jl_lambda_info_t *jl_typemap_assoc_exact(union jl_typemap_t ml_or_cache,
return li;
}
assert(jl_is_datatype(ty));
if (cache->arg1 != (void*)jl_nothing && offs < 2) {
if (cache->arg1 != (void*)jl_nothing && offs < 2 && n > 1) {
ml_or_cache = mtcache_hash_lookup(cache->arg1, ty, 0, offs);
if (jl_typeof(ml_or_cache.unknown) == (jl_value_t*)jl_typemap_entry_type &&
ml_or_cache.leaf->simplesig == (void*)jl_nothing) {
Expand Down

0 comments on commit 3d9c014

Please sign in to comment.