mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-05 15:28:39 +09:00
Merge remote-tracking branch 'origin/tracking' into custom
This commit is contained in:
commit
688fa00ac4
2 changed files with 4 additions and 3 deletions
|
|
@ -1,9 +1,10 @@
|
|||
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
|
||||
/****************************************************************
|
||||
*
|
||||
* The author of this software is David M. Gay.
|
||||
* The original author of this software is David M. Gay.
|
||||
*
|
||||
* Copyright (c) 1991, 2000, 2001 by Lucent Technologies.
|
||||
* Copyright (c) 2024 by Moonchild Productions.
|
||||
*
|
||||
* Permission to use, copy, modify, and distribute this software for any
|
||||
* purpose without fee is hereby granted, provided that this entire notice
|
||||
|
|
@ -2958,7 +2959,7 @@ dtoa
|
|||
}
|
||||
#endif
|
||||
dval(d) += dval(d);
|
||||
if (dval(d) > ds || (dval(d) == ds && L & 1)) {
|
||||
if (dval(d) >= ds) {
|
||||
bump_up:
|
||||
while(*--s == '9')
|
||||
if (s == s0) {
|
||||
|
|
|
|||
|
|
@ -848,7 +848,7 @@ num_toFixed_impl(JSContext* cx, const CallArgs& args)
|
|||
if (!ToInteger(cx, args[0], &prec))
|
||||
return false;
|
||||
|
||||
if (!ComputePrecisionInRange(cx, -20, MAX_PRECISION, prec, &precision))
|
||||
if (!ComputePrecisionInRange(cx, 0, MAX_PRECISION, prec, &precision))
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue