Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 9b50b98

Browse files
committedApr 12, 2016
fix another pre-existing bug, this time in jl_typemap_assoc_exact compuation of args[1-offs]
1 parent 8f89ff6 commit 9b50b98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/gf.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -666,7 +666,7 @@ static jl_lambda_info_t *jl_typemap_assoc_exact(union jl_typemap_t ml_or_cache,
666666
return li;
667667
}
668668
assert(jl_is_datatype(ty));
669-
if (cache->arg1 != (void*)jl_nothing && offs < 2) {
669+
if (cache->arg1 != (void*)jl_nothing && offs < 2 && n > 1) {
670670
ml_or_cache = mtcache_hash_lookup(cache->arg1, ty, 0, offs);
671671
if (jl_typeof(ml_or_cache.unknown) == (jl_value_t*)jl_typemap_entry_type &&
672672
ml_or_cache.leaf->simplesig == (void*)jl_nothing) {

0 commit comments

Comments
 (0)
Please sign in to comment.