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 hash :int = hkey.hashCode();
|
||||||
var index :int = indexFor(hash);
|
var index :int = indexFor(hash);
|
||||||
var e :Entry = (_entries[index] as Entry);
|
var e :Entry = (_entries[index] as Entry);
|
||||||
while (true) {
|
while (e != null) {
|
||||||
if (e == null) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (e.hash == hash && e.key.equals(hkey)) {
|
if (e.hash == hash && e.key.equals(hkey)) {
|
||||||
return e.value;
|
return e.value;
|
||||||
}
|
}
|
||||||
e = e.next;
|
e = e.next;
|
||||||
}
|
}
|
||||||
|
return undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
// documentation inherited from interface Map
|
// documentation inherited from interface Map
|
||||||
|
|||||||
Reference in New Issue
Block a user