Skip to content

Commit f2400de

Browse files
committed
bug fix memory corruption in round_string
1 parent f60f760 commit f2400de

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

include/universal/number/dd/dd_impl.hpp

-2
Original file line numberDiff line numberDiff line change
@@ -635,8 +635,6 @@ class dd {
635635
(*decimalPoint)++; // increment decimal point
636636
++precision;
637637
}
638-
639-
s[precision] = 0; // add termination null
640638
}
641639

642640
void append_exponent(std::string& str, int e) const {

static/dd/conversion/to_string.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,6 @@ try {
145145

146146
#if MANUAL_TESTING
147147

148-
149148
ScanTest(0); // reference native double
150149
ScanTest(1); // comparative double-double
151150

0 commit comments

Comments
 (0)