aboutsummaryrefslogtreecommitdiff
path: root/src/zenserver/frontend/html/util/compactbinary.js
diff options
context:
space:
mode:
authorZousar Shaker <[email protected]>2025-04-11 08:38:39 -0600
committerGitHub Enterprise <[email protected]>2025-04-11 08:38:39 -0600
commit3a2c42d9655a34e7747145c9911faa317cd1c69a (patch)
treeda525d910fd2a8f8ccd8e79c930c5184d171d456 /src/zenserver/frontend/html/util/compactbinary.js
parentuse FindClose (#357) (diff)
parentChangelog (diff)
downloadzen-3a2c42d9655a34e7747145c9911faa317cd1c69a.tar.xz
zen-3a2c42d9655a34e7747145c9911faa317cd1c69a.zip
Merge pull request #356 from ue-foundation/zs/web-ui-signed-integers
Zs/web UI signed integers
Diffstat (limited to 'src/zenserver/frontend/html/util/compactbinary.js')
-rw-r--r--src/zenserver/frontend/html/util/compactbinary.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/zenserver/frontend/html/util/compactbinary.js b/src/zenserver/frontend/html/util/compactbinary.js
index 366ec6aff..90e4249f6 100644
--- a/src/zenserver/frontend/html/util/compactbinary.js
+++ b/src/zenserver/frontend/html/util/compactbinary.js
@@ -284,7 +284,7 @@ CbFieldView.prototype.as_array = function()
}
////////////////////////////////////////////////////////////////////////////////
-CbFieldView.prototype.as_value = function(int_type=Number)
+CbFieldView.prototype.as_value = function(int_type=BigInt)
{
switch (CbFieldTypeOps.get_type(this.get_type()))
{
@@ -388,8 +388,8 @@ CbObjectView.prototype.to_js_object = function()
}
if (node.is_string()) return node.as_value();
- if (node.is_float()) return node.as_value();
if (node.is_integer()) return node.as_value();
+ if (node.is_float()) return node.as_value();
var ret = node.as_value();
if (ret instanceof Uint8Array)