mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-13 13:09:16 +02:00
* Fix issue #39009, remove size 20 limit on float types
git-svn-id: trunk@49507 -
(cherry picked from commit f3e7d96053
)
This commit is contained in:
parent
0c5cd7bfaa
commit
3c618da545
@ -617,7 +617,8 @@ begin
|
||||
// Note: this field can be stored as BCD or integer, depending on FPrecision;
|
||||
// that's why we allow 0 precision
|
||||
if FSize < 1 then FSize := 1;
|
||||
if FSize >= 20 then FSize := 20;
|
||||
// Removed, bug report 39009
|
||||
// if FSize >= 20 then FSize := 20;
|
||||
if FPrecision > FSize-2 then FPrecision := FSize-2; //Leave space for . and -
|
||||
if FPrecision < 0 then FPrecision := 0;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user