Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

oops, fix the ambiguity in my last commit

  • Loading branch information...
commit 8b92b91b65e9e536584a1c916303a877efe9348a 1 parent c834cbe
Jeff Bezanson JeffBezanson authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  base/pointer.jl
3  base/pointer.jl
View
@@ -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 ##
Please sign in to comment.
Something went wrong with that request. Please try again.