Skip to content

Commit

Permalink
Fix comment location
Browse files Browse the repository at this point in the history
  • Loading branch information
aapoalas committed Aug 13, 2023
1 parent 82df8ac commit cada329
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ext/node/polyfills/internal/buffer.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -1864,12 +1864,12 @@ function readInt24LE(buf, offset = 0) {
// Because of two's complement format the bottom bits can
// always be viewed as unsigned bits. If the top is positive
// then the bottom adds to the positivity. If the top is negative
// then the bottom reduces from the negativity. In either case
// the binary representation is the same.
/**
* @type {DataView}
*/
const view = buf[VIEW_SYMBOL];
// then the bottom reduces from the negativity. In either case
// the binary representation is the same.
return view.getUint16(offset, true) + view.getInt8(offset + 2) * 2 ** 16;
}

Expand Down

0 comments on commit cada329

Please sign in to comment.