mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:27:44 +00:00
LibJS: Replace comparisons of "0"_bigint with SignedBigInteger::is_zero
This just avoids creating UnsignedBigInteger's underlying vector.
This commit is contained in:
parent
440d185666
commit
a712c7b5e1
4 changed files with 4 additions and 4 deletions
|
@ -1530,7 +1530,7 @@ ThrowCompletionOr<DurationRecord> adjust_rounded_duration_days(GlobalObject& glo
|
|||
i32 direction;
|
||||
|
||||
// 3. If timeRemainderNs = 0, let direction be 0.
|
||||
if (time_remainder_ns == "0"_bigint)
|
||||
if (time_remainder_ns.is_zero())
|
||||
direction = 0;
|
||||
// 4. Else if timeRemainderNs < 0, let direction be -1.
|
||||
else if (time_remainder_ns.is_negative())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue