Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/101arrowz/fflate
Browse files Browse the repository at this point in the history
  • Loading branch information
101arrowz committed May 23, 2021
2 parents b18737f + fe022f9 commit 20795bc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -243,7 +243,7 @@ const zipped = fflate.zipSync({
'dir1': {
'nested': {
// You can use Unicode in filenames
'你好.txt': std('Hey there!')
'你好.txt': strToU8('Hey there!')
},
// You can also manually write out a directory path
'other/tmp.txt': new Uint8Array([97, 98, 99, 100])
Expand Down Expand Up @@ -275,7 +275,7 @@ const zipped = fflate.zipSync({
// |-> other
// | |-> tmp.txt
// myImageData.bmp
// superTinyFile.bin
// superTinyFile.png

// When decompressing, folders are not nested; all filepaths are fully
// written out in the keys. For example, the return value may be:
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Expand Up @@ -761,7 +761,7 @@ const adler = (): CRCV => {
p(d) {
// closures have awful performance
let n = a, m = b;
const l = d.length;
const l = d.length | 0;
for (let i = 0; i != l;) {
const e = Math.min(i + 2655, l);
for (; i < e; ++i) m += n += d[i];
Expand Down

0 comments on commit 20795bc

Please sign in to comment.