Browse files

oops, fix the ambiguity in my last commit

  • Loading branch information...
1 parent c834cbe commit 8b92b91b65e9e536584a1c916303a877efe9348a @JeffBezanson JeffBezanson committed Sep 16, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 base/pointer.jl
View
3 base/pointer.jl
@@ -40,7 +40,8 @@ unsafe_assign{T}(p::Ptr{T}, x) = unsafe_assign(p, convert(T,x), 1)
integer(x::Ptr) = convert(Uint, x)
unsigned(x::Ptr) = convert(Uint, x)
-@eval sizeof{T<:Ptr}(::Type{T}) = $(div(WORD_SIZE,8))
+@eval sizeof(::Type{Ptr}) = $(div(WORD_SIZE,8))
+@eval sizeof{T}(::Type{Ptr{T}}) = $(div(WORD_SIZE,8))
eltype{T}(::Ptr{T}) = T
## limited pointer arithmetic & comparison ##

0 comments on commit 8b92b91

Please sign in to comment.