avk959 / LGenerics

Generic algorithms and data structures for Lazarus/Free Pascal
Apache License 2.0
113 stars 16 forks source link

Compiling package on macOS fails #14

Closed frogfather closed 9 months ago

frogfather commented 9 months ago

Error is lgasync.pas(2103,13) Error: Incompatible types: got "ShortInt" expected "TThreadID" fpc 3.2.2 Lazarus 2.2.6 MacOS Ventura 13.6.1

Fixed locally by changing lgAsync line 2103 from Result :=0; to Result := TThreadId(0);
and lgAsync line 2110 from Result := 0; to Result := TThreadId(0);

avk959 commented 9 months ago

Thanks, never tested the library on the Mac. Fixed it, although it looks more like a compiler quirk.