Skip to content

Commit

Permalink
fix #10998
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffBezanson committed Apr 25, 2015
1 parent 8689a50 commit f2e3d33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/builtins.c
Original file line number Diff line number Diff line change
Expand Up @@ -1177,7 +1177,7 @@ DLLEXPORT uptrint_t jl_object_id(jl_value_t *v)
// can exist in the cache. however, interpreter.c mutates its
// typevars' `bound` fields to 0, corrupting the cache. this is
// avoided simply by hashing name->primary specially here.
if (dtv->name->primary == v)
if (jl_egal(dtv->name->primary, v))
return bitmix(bitmix(h, dtv->name->uid), 0xaa5566aa);
return bitmix(bitmix(h, dtv->name->uid),
jl_object_id((jl_value_t*)dtv->parameters));
Expand Down

0 comments on commit f2e3d33

Please sign in to comment.