mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-08 11:48:04 +02:00
* Merging revisions r43697 from trunk:
------------------------------------------------------------------------ r43697 | michael | 2019-12-18 13:14:51 +0100 (Wed, 18 Dec 2019) | 1 line * Fix currency to SQL_NUMERIC_STRUCT for platforms without extended ------------------------------------------------------------------------ git-svn-id: branches/fixes_3_2@43729 -
This commit is contained in:
parent
4e1e808c25
commit
8468db2175
@ -1962,7 +1962,7 @@ begin
|
||||
Result.sign:=0;
|
||||
c := -c;
|
||||
end;
|
||||
n := NtoLE(Trunc(c*10000));
|
||||
n := NtoLE(Trunc(c)*10000 + Round(Frac(c)*10000));
|
||||
for i:=0 to high(Result.val) do begin
|
||||
Result.val[i] := n and $ff;
|
||||
n := n shr 8;
|
||||
|
Loading…
Reference in New Issue
Block a user