Wee Occam Jr., with his shiny oversized plastic "My First Razor"!
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4469 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -76,15 +76,13 @@ public class Hashtable
|
||||
var hash :int = hkey.hashCode();
|
||||
var index :int = indexFor(hash);
|
||||
var e :Entry = (_entries[index] as Entry);
|
||||
while (true) {
|
||||
if (e == null) {
|
||||
return undefined;
|
||||
}
|
||||
while (e != null) {
|
||||
if (e.hash == hash && e.key.equals(hkey)) {
|
||||
return e.value;
|
||||
}
|
||||
e = e.next;
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
|
||||
// documentation inherited from interface Map
|
||||
|
||||
Reference in New Issue
Block a user