Skip to content

Commit

Permalink
fix for a chrome optimization bug on android
Browse files Browse the repository at this point in the history
  • Loading branch information
Nilos committed Jul 4, 2017
1 parent 3668e63 commit 6bb1978
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/codecString.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @author Mike Hamburg
* @author Dan Boneh
*/

/**
* UTF-8 strings
* @namespace
Expand All @@ -17,12 +17,12 @@ sjcl.codec.utf8String = {
if ((i&3) === 0) {
tmp = arr[i/4];
}
out += String.fromCharCode(tmp >>> 24);
out += String.fromCharCode(tmp >>> 8 >>> 8 >>> 8);
tmp <<= 8;
}
return decodeURIComponent(escape(out));
},

/** Convert from a UTF-8 string to a bitArray. */
toBits: function (str) {
str = unescape(encodeURIComponent(str));
Expand Down

0 comments on commit 6bb1978

Please sign in to comment.