瀏覽代碼

* Fix issue #33755

git-svn-id: trunk@39160 -
michael 7 年之前
父節點
當前提交
107999f706
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/odbc/src/odbcsql.inc

+ 1 - 1
packages/odbc/src/odbcsql.inc

@@ -1919,7 +1919,7 @@ begin
     Result.sign:=0;
     Result.sign:=0;
     c := -c;
     c := -c;
   end;
   end;
-  n := NtoLE(int64(c));
+  n := NtoLE(Trunc(c*10000));
   for i:=0 to high(Result.val) do begin
   for i:=0 to high(Result.val) do begin
     Result.val[i] := n and $ff;
     Result.val[i] := n and $ff;
     n := n shr 8;
     n := n shr 8;