* Fix bug ID #38489, patch by Laco

git-svn-id: trunk@49604 -
This commit is contained in:
michael 2021-07-13 08:15:25 +00:00
parent ab86ce7e62
commit 2486d58db9

View File

@ -2842,10 +2842,12 @@ writeln ( '> ', i4, ' ', bh.Singles[i4], ' ', Add );
PFmt := Section.FmtDS; // start from decimal point until end
i := length(BCDStr) - Scale + ord(Scale=0);
dec(j1, Section.FmtEnd-Section.FmtDS);
j := j1 + 1;
j := j1 + 1; // points to decimal separator in output buffer
while PFmt < Section.FmtEnd do
PutFmtDigit(PFmt, i, j, 1);
je := j; // store position after last decimal digit
if j-j1=2 then // alone decimal separator at end of output buffer
dec(j);
je := j; // store position after last decimal digit (or any constant character) in output buffer
end;
// output whole number part of BCDStr