Skip to content

Commit

Permalink
Fixed #2
Browse files Browse the repository at this point in the history
  • Loading branch information
andot committed Dec 27, 2019
1 parent 98564b5 commit 527f117
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/xxtea.js
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ function toLongString(bytes, n) {
function toString(bytes) {
var n = bytes.length;
if (n === 0) return '';
return ((n < 0xFFFF) ?
return ((n < 0x7FFF) ?
toShortString(bytes, n) :
toLongString(bytes, n));
}
Expand Down

0 comments on commit 527f117

Please sign in to comment.