From cada32912b51771b1217a36558a4012fffc62322 Mon Sep 17 00:00:00 2001 From: Aapo Alasuutari Date: Sun, 13 Aug 2023 12:33:43 +0300 Subject: [PATCH] Fix comment location --- ext/node/polyfills/internal/buffer.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/node/polyfills/internal/buffer.mjs b/ext/node/polyfills/internal/buffer.mjs index 0a4911e42a27dd..3245aa1438802e 100644 --- a/ext/node/polyfills/internal/buffer.mjs +++ b/ext/node/polyfills/internal/buffer.mjs @@ -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; }