mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-11-02 13:19:34 +01:00
* fixed mixing of longint/dword to avoid 64 bit conversion
git-svn-id: trunk@5788 -
This commit is contained in:
parent
a23fa2e81e
commit
e2193b1540
@ -80,7 +80,7 @@ begin
|
||||
assert(d > 0);
|
||||
|
||||
magic_add := false;
|
||||
nc := - 1 - (-d) mod d;
|
||||
nc := dword(- 1) - dword(-d) mod d;
|
||||
p := 31; { initialize p }
|
||||
q1 := $80000000 div nc; { initialize q1 = 2p/nc }
|
||||
r1 := $80000000 - q1*nc; { initialize r1 = rem(2p,nc) }
|
||||
|
||||
Loading…
Reference in New Issue
Block a user