Skip to content

Commit

Permalink
fix: bug with unicode characters (#196)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed Nov 4, 2021
1 parent 5ecf7da commit 0426405
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/hash/wasm-hash.js
Expand Up @@ -82,7 +82,7 @@ class WasmHash {
endPos += 2;
} else {
// bail-out for weird chars
endPos += mem.write(data.slice(endPos), endPos, encoding);
endPos += mem.write(data.slice(i), endPos, encoding);
break;
}
}
Expand Down

0 comments on commit 0426405

Please sign in to comment.