summaryrefslogtreecommitdiffstats
path: root/js/src/builtin/temporal/Int96.cpp
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 05:43:14 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 05:43:14 +0000
commit8dd16259287f58f9273002717ec4d27e97127719 (patch)
tree3863e62a53829a84037444beab3abd4ed9dfc7d0 /js/src/builtin/temporal/Int96.cpp
parentReleasing progress-linux version 126.0.1-1~progress7.99u1. (diff)
downloadfirefox-8dd16259287f58f9273002717ec4d27e97127719.tar.xz
firefox-8dd16259287f58f9273002717ec4d27e97127719.zip
Merging upstream version 127.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'js/src/builtin/temporal/Int96.cpp')
-rw-r--r--js/src/builtin/temporal/Int96.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/js/src/builtin/temporal/Int96.cpp b/js/src/builtin/temporal/Int96.cpp
index 73ea5ce90e..984271566a 100644
--- a/js/src/builtin/temporal/Int96.cpp
+++ b/js/src/builtin/temporal/Int96.cpp
@@ -39,12 +39,12 @@ mozilla::Maybe<Int96> Int96::fromInteger(double value) {
// Inlined version of |BigInt::createFromDouble()| for DigitBits=32. See the
// comments in |BigInt::createFromDouble()| for how this code works.
- constexpr size_t DigitBits = 32;
+ constexpr int DigitBits = 32;
// The number can't have more than three digits when it's below |maximum|.
Int96::Digits digits = {};
- int exponent = mozilla::ExponentComponent(value);
+ int exponent = int(mozilla::ExponentComponent(value));
MOZ_ASSERT(0 <= exponent && exponent <= 95,
"exponent is lower than exponent of 0x1p+96");
@@ -62,7 +62,7 @@ mozilla::Maybe<Int96> Int96::fromInteger(double value) {
int msdTopBit = exponent % DigitBits;
// First, build the MSD by shifting the mantissa appropriately.
- int remainingMantissaBits = Double::kSignificandWidth - msdTopBit;
+ int remainingMantissaBits = int(Double::kSignificandWidth - msdTopBit);
digits[--length] = mantissa >> remainingMantissaBits;
// Fill in digits containing mantissa contributions.