mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-11-02 22:29:24 +01:00
rtl/m68k/m68k.inc:
* InterlockedIncrement & InterlockedDecrement: return the modified value, not the original one git-svn-id: trunk@23432 -
This commit is contained in:
parent
f5e94a02cd
commit
83af4e93f7
@ -354,16 +354,16 @@ function abs(l : longint) : longint;
|
||||
function InterLockedDecrement (var Target: longint) : longint;
|
||||
begin
|
||||
{$warning FIX ME}
|
||||
Result := Target;
|
||||
Dec(Target);
|
||||
Result := Target;
|
||||
end;
|
||||
|
||||
|
||||
function InterLockedIncrement (var Target: longint) : longint;
|
||||
begin
|
||||
{$warning FIX ME}
|
||||
Result := Target;
|
||||
Inc(Target);
|
||||
Result := Target;
|
||||
end;
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user