mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-05-30 08:23:09 +00:00
fix[js]: javascript support compatible field
This commit is contained in:
@@ -235,6 +235,7 @@ const ByteBuffer = function() {
|
||||
if (!(minInt <= value && value <= maxInt)) {
|
||||
throw new Error('value must range between minInt:-2147483648 and maxInt:2147483647');
|
||||
}
|
||||
value = encodeZigzagInt(value);
|
||||
if (value >>> 7 === 0) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user