Skip to content

Commit

Permalink
More specific type for index in PriorityQueue.
Browse files Browse the repository at this point in the history
  • Loading branch information
dcjones committed Apr 30, 2013
1 parent 6a775e1 commit 467d813
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions base/collections.jl
Original file line number Diff line number Diff line change
@@ -122,8 +122,8 @@ type PriorityQueue{K,V} <: Associative{K,V}
xs::Array{(K, V), 1}
o::Ordering

# Map elements to their index is xs
index::Dict
# Map elements to their index in xs
index::Dict{K, Int}

function PriorityQueue(o::Ordering)
new(Array((K, V), 0), o, Dict{K, Int}())
2 changes: 1 addition & 1 deletion deps/libuv

0 comments on commit 467d813

Please sign in to comment.