ref[js]: deserialization Long class to numbe of long

This commit is contained in:
godotg committed 2024-04-23 11:49:35 +08:00
1 parent 1ac05c5aea
commit f7ad0e093f
2 files changed
+2 -2

No files matched your search

@@ -326,7 +326,7 @@ const ByteBuffer = function() {
}
}
}
return readInt64(new Uint8Array(buffer.slice(0, count)));
return readInt64(new Uint8Array(buffer.slice(0, count))).toNumber();
};
this.writeFloat = function(value) {
@@ -322,7 +322,7 @@ const ByteBuffer = function() {
}
}
}
return readInt64(new Uint8Array(buffer.slice(0, count)));
return readInt64(new Uint8Array(buffer.slice(0, count))).toNumber();
};
this.writeFloat = function(value) {