@bare-ts/lib 0.4.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -368,7 +368,7 @@ export function writeUintSafe32(bc, x) {
368
368
  }
369
369
  let zigZag = x >>> 0;
370
370
  while (zigZag >= 128) {
371
- writeU8(bc, 128 | x & 127);
371
+ writeU8(bc, 128 | zigZag & 127);
372
372
  zigZag >>>= 7;
373
373
  }
374
374
  writeU8(bc, zigZag);
package/dist/index.cjs CHANGED
@@ -582,7 +582,7 @@ function writeUintSafe32(bc, x) {
582
582
  }
583
583
  let zigZag = x >>> 0;
584
584
  while (zigZag >= 128) {
585
- writeU8(bc, 128 | x & 127);
585
+ writeU8(bc, 128 | zigZag & 127);
586
586
  zigZag >>>= 7;
587
587
  }
588
588
  writeU8(bc, zigZag);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bare-ts/lib",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "TypeScript library for BARE, a compact and simple binary-serialization format",
5
5
  "keywords": [
6
6
  "bare",