mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-11-04 20:39:42 +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;
|
function InterLockedDecrement (var Target: longint) : longint;
|
||||||
begin
|
begin
|
||||||
{$warning FIX ME}
|
{$warning FIX ME}
|
||||||
Result := Target;
|
|
||||||
Dec(Target);
|
Dec(Target);
|
||||||
|
Result := Target;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
function InterLockedIncrement (var Target: longint) : longint;
|
function InterLockedIncrement (var Target: longint) : longint;
|
||||||
begin
|
begin
|
||||||
{$warning FIX ME}
|
{$warning FIX ME}
|
||||||
Result := Target;
|
|
||||||
Inc(Target);
|
Inc(Target);
|
||||||
|
Result := Target;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user