Skip to content

Commit

Permalink
Use C_NULL instead of 0.
Browse files Browse the repository at this point in the history
  • Loading branch information
malmaud committed Feb 4, 2019
1 parent ec2ab68 commit 66e26ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/boot.jl
Original file line number Diff line number Diff line change
Expand Up @@ -747,7 +747,7 @@ Int64(x::Ptr) = Int64(UInt32(x))
UInt64(x::Ptr) = UInt64(UInt32(x))
end
Ptr{T}(x::Union{Int,UInt,Ptr}) where {T} = bitcast(Ptr{T}, x)
Ptr{T}() where {T} = Ptr{T}(0)
Ptr{T}() where {T} = Ptr{T}(C_NULL)

Signed(x::UInt8) = Int8(x)
Unsigned(x::Int8) = UInt8(x)
Expand Down

0 comments on commit 66e26ab

Please sign in to comment.