@mapwhit/pbf 1.0.0 → 1.0.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.
- package/index.js +7 -5
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -462,11 +462,13 @@ function toNum(low, high, isSigned) {
|
|
|
462
462
|
}
|
|
463
463
|
|
|
464
464
|
function writeBigVarint(val, pbf) {
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
465
|
+
/* global DEBUG */
|
|
466
|
+
if (DEBUG) {
|
|
467
|
+
assert(
|
|
468
|
+
val < 0x10000000000000000 && val >= -0x10000000000000000,
|
|
469
|
+
'Given varint doesn\'t fit into 10 bytes'
|
|
470
|
+
);
|
|
471
|
+
}
|
|
470
472
|
|
|
471
473
|
let low;
|
|
472
474
|
let high;
|