summaryrefslogtreecommitdiff
path: root/rtl/m68k
diff options
context:
space:
mode:
authorsvenbarth <svenbarth@3ad0048d-3df7-0310-abae-a5850022a9f2>2013-01-17 21:19:27 +0000
committersvenbarth <svenbarth@3ad0048d-3df7-0310-abae-a5850022a9f2>2013-01-17 21:19:27 +0000
commit52749d10724ba3b25a977f6a0a8a021ea940f63f (patch)
tree6ded74282bb0641204cfac849675c21d60dab52a /rtl/m68k
parentc482574d1365fe20f4ce7c79a9183f37b2224198 (diff)
downloadfpc-52749d10724ba3b25a977f6a0a8a021ea940f63f.tar.gz
rtl/m68k/m68k.inc:
* InterlockedIncrement & InterlockedDecrement: return the modified value, not the original one git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@23432 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'rtl/m68k')
-rw-r--r--rtl/m68k/m68k.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/rtl/m68k/m68k.inc b/rtl/m68k/m68k.inc
index 87ef38c225..4e6052d997 100644
--- a/rtl/m68k/m68k.inc
+++ b/rtl/m68k/m68k.inc
@@ -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;