浏览代码

* Fixed BCDToStr for values between -1 and 0

git-svn-id: trunk@16952 -
joost 14 年之前
父节点
当前提交
7b8797afe7
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      rtl/objpas/fmtbcd.pp

+ 4 - 1
rtl/objpas/fmtbcd.pp

@@ -1728,7 +1728,10 @@ IMPLEMENTATION
             then begin
 {$ifndef use_ansistring}
               Inc ( l );
-              result[1] := '0';
+              if Neg then
+                result[2] := '0'
+              else
+                result[1] := '0'
 {$else}
               result := result + '0';
 {$endif}