We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dacf7cc commit 3e208e2Copy full SHA for 3e208e2
1 file changed
exercises/practice/variable-length-quantity/.meta/proof.ci.js
@@ -7,11 +7,11 @@ const encodeOne = (val) => {
7
let left = val;
8
9
while (left) {
10
- const bits = (left & DATA_BITS) | CONT_BITS; // set continuation everywhere
+ const bits = (left & DATA_BITS) | CONT_BITS;
11
left = left >>> LENGTH;
12
buf.push(bits);
13
}
14
- buf[0] = buf[0] & DATA_BITS; // cancel the last continuation
+ buf[0] = buf[0] & DATA_BITS;
15
return buf.reverse();
16
};
17
@@ -21,7 +21,7 @@ const decodeOne = (buf) => {
21
for (let i = 0; i < buf.length; i++) {
22
val = (val << LENGTH) | (buf[i] & DATA_BITS);
23
24
- return val >>> 0; // convert to unsigned 32-bit
+ return val >>> 0;
25
26
27
export const encode = (data) => {
0 commit comments