Skip to content

Commit

Permalink
Correct the buffer size
Browse files Browse the repository at this point in the history
  • Loading branch information
jedenastka committed Aug 2, 2024
1 parent d9e6648 commit 2b1c010
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/ircColors/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function hash(data: ArrayBuffer) {

// Calculate a CSS color string based on the user ID
function calculateNameColorForUser(id: bigint) {
const idBuffer = new ArrayBuffer(16);
const idBuffer = new ArrayBuffer(8);
{
const idView = new DataView(idBuffer);
idView.setBigUint64(0, id);
Expand Down

0 comments on commit 2b1c010

Please sign in to comment.