Skip to content

Commit dd345d7

Browse files
committed
Refactor
1 parent 3dd9a37 commit dd345d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/charSet.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ const _ndxFn = (bitsPerChar) => {
8282
// Otherwise, while slicing off bits per char, we will possibly straddle a couple
8383
// of bytes, so a bit more work is involved
8484
else {
85+
let slicesPerChunk = lcm(bitsPerChar, BITS_PER_BYTE) / BITS_PER_BYTE
8586
return function(chunk, slice, bytes) {
86-
let slicesPerChunk = lcm(bitsPerChar, BITS_PER_BYTE) / BITS_PER_BYTE
8787
let bNum = chunk * slicesPerChunk
8888

8989
let offset = (slice*bitsPerChar)/BITS_PER_BYTE

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy