Browse Source

* Fix wrong type for threadID

Michaël Van Canneyt 1 year ago
parent
commit
85494cdb1d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/rtl-objpas/src/inc/fpmonitor.pp

+ 1 - 1
packages/rtl-objpas/src/inc/fpmonitor.pp

@@ -344,7 +344,7 @@ begin
   // Forcibly unlock through any amount of recursive acquisitions!
   PrevLockCount:=aLock^.LockCount;
   aLock^.LockCount:=0;
-  aLock^.LockOwnerThreadID:=0;
+  aLock^.LockOwnerThreadID:=TThreadID(0);
   LeaveCriticalSection(aLock^.CriticalSection);
 
   Result:=aPulse.Wait(aTimeOut);