We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3dd9a37 commit dd345d7Copy full SHA for dd345d7
lib/charSet.js
@@ -82,8 +82,8 @@ const _ndxFn = (bitsPerChar) => {
82
// Otherwise, while slicing off bits per char, we will possibly straddle a couple
83
// of bytes, so a bit more work is involved
84
else {
85
+ let slicesPerChunk = lcm(bitsPerChar, BITS_PER_BYTE) / BITS_PER_BYTE
86
return function(chunk, slice, bytes) {
- let slicesPerChunk = lcm(bitsPerChar, BITS_PER_BYTE) / BITS_PER_BYTE
87
let bNum = chunk * slicesPerChunk
88
89
let offset = (slice*bitsPerChar)/BITS_PER_BYTE
0 commit comments