mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-13 18:29:12 +02:00
LazUtils: Do not garble LazFreeType fonts. Issue #37012, patch from circular.
git-svn-id: trunk@63125 -
This commit is contained in:
parent
9679fa6543
commit
8fccfb64ef
@ -141,8 +141,15 @@ var
|
||||
temp: Int64;
|
||||
begin
|
||||
temp := int64(a)*int64(b);
|
||||
if temp >= 0 then temp += c shr 1
|
||||
else temp -= c shr 1;
|
||||
if c < 0 then
|
||||
begin
|
||||
c := -c;
|
||||
temp := -temp;
|
||||
end;
|
||||
if temp >= 0 then
|
||||
temp += c shr 1
|
||||
else
|
||||
temp -= c shr 1;
|
||||
result := temp div c;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user