Skip to content

Commit 20795bc

Browse files
committed
Merge branch 'master' of https://github.com/101arrowz/fflate
2 parents b18737f + fe022f9 commit 20795bc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ const zipped = fflate.zipSync({
243243
'dir1': {
244244
'nested': {
245245
// You can use Unicode in filenames
246-
'你好.txt': std('Hey there!')
246+
'你好.txt': strToU8('Hey there!')
247247
},
248248
// You can also manually write out a directory path
249249
'other/tmp.txt': new Uint8Array([97, 98, 99, 100])
@@ -275,7 +275,7 @@ const zipped = fflate.zipSync({
275275
// |-> other
276276
// | |-> tmp.txt
277277
// myImageData.bmp
278-
// superTinyFile.bin
278+
// superTinyFile.png
279279

280280
// When decompressing, folders are not nested; all filepaths are fully
281281
// written out in the keys. For example, the return value may be:

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -761,7 +761,7 @@ const adler = (): CRCV => {
761761
p(d) {
762762
// closures have awful performance
763763
let n = a, m = b;
764-
const l = d.length;
764+
const l = d.length | 0;
765765
for (let i = 0; i != l;) {
766766
const e = Math.min(i + 2655, l);
767767
for (; i < e; ++i) m += n += d[i];

0 commit comments

Comments
 (0)