Skip to content

Commit

Permalink
Merge pull request brix#40 from aaron-schmidt/patch-1
Browse files Browse the repository at this point in the history
Putting (bits1 | bits2) expression into a variable
  • Loading branch information
evanvosberg committed Dec 31, 2015
2 parents ea83723 + 38ca594 commit ee286f9
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 ee286f9

Please sign in to comment.