Skip to content

Commit

Permalink
Merge pull request #214 from JuliaLang/yyc/array-isassigned
Browse files Browse the repository at this point in the history
Use isassigned(::Array) instead of isdefined(::Array)
  • Loading branch information
timholy authored Sep 10, 2016
2 parents 06792b4 + 22be4a8 commit a4a2d41
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ language: julia
os:
- linux
- osx
julia:
julia:
- 0.4
- 0.5
- nightly
notifications:
email: false
Expand Down
2 changes: 1 addition & 1 deletion src/ordered_dict.jl
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ function rehash!{K,V}(h::OrderedDict{K,V}, newsz = length(h.slots))
newkeys = similar(keys, count0)
newvals = similar(vals, count0)
@inbounds for from = 1:length(keys)
if !ptrs || isdefined(keys, from)
if !ptrs || isassigned(keys, from)
k = keys[from]
hashk = hash(k)%Int
isdeleted = false
Expand Down

0 comments on commit a4a2d41

Please sign in to comment.