Skip to content

Commit

Permalink
fix error in t-function for pointerref
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffBezanson committed Mar 7, 2013
1 parent d86b3bc commit 486ffc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/inference.jl
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ function arraysize_tfunc(a)
end
end
t_func[arraysize] = (1, 2, arraysize_tfunc)
t_func[pointerref] = (2,2,(a,i)->(subtype(a,Ptr) ? a.parameters[1] : Any))
t_func[pointerref] = (2,2,(a,i)->(isa(a,DataType)&&subtype(a,Ptr) ? a.parameters[1] : Any))
t_func[pointerset] = (3, 3, (a,v,i)->a)

function static_convert(to::ANY, from::ANY)
Expand Down

0 comments on commit 486ffc7

Please sign in to comment.