From 6bb197851045d1fc401405b11d96ec35404d535a Mon Sep 17 00:00:00 2001 From: Nils Kenneweg Date: Tue, 4 Jul 2017 10:51:11 +0200 Subject: [PATCH] fix for a chrome optimization bug on android --- core/codecString.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/codecString.js b/core/codecString.js index 1a8a396f..79e4a49d 100644 --- a/core/codecString.js +++ b/core/codecString.js @@ -4,7 +4,7 @@ * @author Mike Hamburg * @author Dan Boneh */ - + /** * UTF-8 strings * @namespace @@ -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));