mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-12-06 12:29:11 +01:00
* Fix currency to SQL_NUMERIC_STRUCT for platforms without extended
git-svn-id: trunk@43697 -
This commit is contained in:
parent
fe7d7aa1e7
commit
49ba4731ed
@ -1962,7 +1962,7 @@ begin
|
|||||||
Result.sign:=0;
|
Result.sign:=0;
|
||||||
c := -c;
|
c := -c;
|
||||||
end;
|
end;
|
||||||
n := NtoLE(Trunc(c*10000));
|
n := NtoLE(Trunc(c)*10000 + Round(Frac(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;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user