Skip to content

Commit

Permalink
Putting (bits1 | bits2) expression into a variable
Browse files Browse the repository at this point in the history
  • Loading branch information
aaron-schmidt committed Dec 29, 2015
1 parent ea83723 commit 38ca594
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/enc-base64.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@
if (i % 4) {
var bits1 = map.indexOf(base64Str.charAt(i - 1)) << ((i % 4) * 2);
var bits2 = map.indexOf(base64Str.charAt(i)) >>> (6 - (i % 4) * 2);
words[nBytes >>> 2] |= (bits1 | bits2) << (24 - (nBytes % 4) * 8);
var bitsCombined = bits1 | bits2;
words[nBytes >>> 2] |= (bitsCombined) << (24 - (nBytes % 4) * 8);
nBytes++;
}
}
Expand Down

0 comments on commit 38ca594

Please sign in to comment.