On 8/31/21 6:39 PM, Luis Pires wrote:
+ if (decNumberIsSpecial(dn) || (dn->exponent < 0) ||
+ (dn->digits + dn->exponent > 39)) {
+ goto Invalid;
+ } else {
No need for the goto and the else. Pick one. Probably the goto, since you need it anyway for the other overflow cases.
Otherwise, Reviewed-by: Richard Henderson <[email protected]> r~
