From 16a4e7d9360906ca4629a8773ddb519da54ff8eb Mon Sep 17 00:00:00 2001 From: "Stephan T. Lavavej" Date: Mon, 28 Mar 2022 12:54:53 -0700 Subject: [PATCH] This loop in `_Divide` is unnecessary because `_Big_integer_flt` assumes garbage elements. --- stl/inc/charconv | 4 ---- 1 file changed, 4 deletions(-) diff --git a/stl/inc/charconv b/stl/inc/charconv index 608f01688ea..327bbd7822e 100644 --- a/stl/inc/charconv +++ b/stl/inc/charconv @@ -1032,10 +1032,6 @@ _NODISCARD inline uint64_t _Divide(_Big_integer_flt& _Numerator, const _Big_inte } // Trim the remainder: - for (uint32_t _Ix = _Max_numerator_element_index + 1; _Ix < _Numerator._Myused; ++_Ix) { - _Numerator._Mydata[_Ix] = 0; - } - uint32_t _Used = _Max_numerator_element_index + 1; while (_Used != 0 && _Numerator._Mydata[_Used - 1] == 0) {