Skip to content

Commit cfd924d

Browse files
committed
Rename inner loop variable from 'i' to 'j'
Fixes phaserjs#2233
1 parent 172f972 commit cfd924d

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/tilemap/TilemapParser.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -242,11 +242,11 @@ Phaser.TilemapParser = {
242242
var bytes = new Array( len );
243243
// Interpret binaryString as an array of bytes representing
244244
// little-endian encoded uint32 values.
245-
for (var i = 0; i < len; i+=4) {
246-
bytes[i/4] = (binaryString.charCodeAt(i) |
247-
binaryString.charCodeAt(i+1) << 8 |
248-
binaryString.charCodeAt(i+2) << 16 |
249-
binaryString.charCodeAt(i+3) << 24) >>> 0;
245+
for (var j = 0; j < len; j+=4) {
246+
bytes[j/4] = (binaryString.charCodeAt(j) |
247+
binaryString.charCodeAt(j+1) << 8 |
248+
binaryString.charCodeAt(j+2) << 16 |
249+
binaryString.charCodeAt(j+3) << 24) >>> 0;
250250
}
251251
curl.data = bytes;
252252
}

0 commit comments

Comments
 (0)