Skip to content

Commit

Permalink
fix: Implementation of rotateLeft function in src/messagenametag.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilIvanichkovv authored and richard-ramos committed Jan 25, 2024
1 parent 4be1418 commit 54e0fd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/messagenametag.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export class MessageNametagBuffer {
if (k < 0 || this.buffer.length == 0) {
return;
}
const idx = this.buffer.length - (k % this.buffer.length);
const idx = k % this.buffer.length;
const a1 = this.buffer.slice(idx);
const a2 = this.buffer.slice(0, idx);
this.buffer = a1.concat(a2);
Expand Down

0 comments on commit 54e0fd5

Please sign in to comment.