@@ -35,8 +35,12 @@ Elm.Native.Array.make = function(elm) {
3535 function unsafeGet(i, array) {
3636 for (var x = array.height; x > 0; x--) {
3737 var slot = i >> (x * 5);
38− while (array.lengths[slot] <= i) slot++;
39− if (slot > 0) i -= array.lengths[slot - 1];
38+ while (array.lengths[slot] <= i) {
39+ slot++;
40+ }
41+ if (slot > 0) {
42+ i -= array.lengths[slot - 1];
43+ }
4044 array = array.table[slot];
4145 }
4246 return array.table[i];
@@ -558,7 +562,9 @@ Elm.Native.Array.make = function(elm) {
558562 // find the exact slot via forward searching in "lengths". Returns the index.
559563 function getSlot(i, a) {
560564 var slot = i >> (5 * a.height);
561− while (a.lengths[slot] <= i) slot++;
565+ while (a.lengths[slot] <= i) {
566+ slot++;
567+ }
562568 return slot;
563569 }
564570