mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-27 11:30:35 +02:00
Fix cpu16 error in AtomicCmpExchange
This commit is contained in:
parent
96921aaba3
commit
ba2b29bd2c
@ -2234,7 +2234,7 @@ end;
|
||||
function AtomicCmpExchange(var Target: word; NewValue, Comperand: word): word; {$ifdef SYSTEMINLINE}inline{$endif};
|
||||
|
||||
begin
|
||||
Result:=InterlockedCompareExchange(TargetNewValue, Comperand);
|
||||
Result:=InterlockedCompareExchange(Target, NewValue, Comperand);
|
||||
end;
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user