@@ -539,10 +539,8 @@ Elm.Native.Array.make = function(elm) {
539 // Calculates in which slot of "table" the item probably is, then
539 // Calculates in which slot of "table" the item probably is, then
540 // find the exact slot via forward searching in "lengths". Returns the index.
540 // find the exact slot via forward searching in "lengths". Returns the index.
541 function getSlot(i, a) {
541 function getSlot(i, a) {
542− var slot = i << (5 * a.height);
542+ var slot = i >> (5 * a.height);
543− while (a.lengths[slot - 1] > i) {
543+ while (a.lengths[slot - 1] > i) { slot--; }
546 return slot;
544 return slot;