mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-06 09:02:50 +00:00
Fixes #1638. The case of the incomplete optimisation.
This commit is contained in:
1 parent
bd0114aa06
commit
df5a7104b1
1 file changed
+2
-3
@@ -285,7 +285,6 @@ CFData.bytesToUtf16String = function(bytes)
|
||||
return String.fromCharCode.apply(NULL, temp);
|
||||
};
|
||||
|
||||
|
||||
CFData.encodeBase64Utf16String = function(input)
|
||||
{
|
||||
// charCodeAt returns UTF-16.
|
||||
@@ -293,8 +292,8 @@ CFData.encodeBase64Utf16String = function(input)
|
||||
for (var i = 0; i < input.length; i++)
|
||||
{
|
||||
var c = input.charCodeAt(i);
|
||||
temp.push(input.charCodeAt(i) & 0xFF);
|
||||
temp.push((input.charCodeAt(i) & 0xFF00) >> 8);
|
||||
temp.push(c & 0xFF);
|
||||
temp.push((c & 0xFF00) >> 8);
|
||||
}
|
||||
|
||||
return CFData.encodeBase64Array(temp);
|
||||
|
||||
Reference in new issue
Block a user