Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
* Correct zmq assertion failure for 64-bit TZMQPoller.Poll

bvarga#17

* Resolve FPC 64-bit compilation issue
  • Loading branch information
toleressea authored and bvarga committed Jan 3, 2019
1 parent 8c4126a commit bcdef1f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion zmq.pas
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,11 @@ function zmq_socket_monitor( s: Pointer; addr: PAnsiChar; events: Integer ): Int
type
pollitem_t = record
socket: Pointer;
fd: Integer; // TSocket???
{$ifdef WIN64}
fd: Int64; // TSocket???
{$else}
fd: Cardinal;
{$endif}
events: Word;
revents: Word;
end;
Expand Down
6 changes: 5 additions & 1 deletion zmqapi.pas
Original file line number Diff line number Diff line change
Expand Up @@ -1902,7 +1902,11 @@ procedure TZMQSocket.RegisterMonitor( proc: TZMQMonitorProc; events: TZMQMonitor
{$ifdef UNIX}
tid: QWord;
{$else}
tid: Cardinal;
{$ifdef FPC}
tid: SizeUInt;
{$else}
tid: Cardinal;
{$endif}
{$endif}
begin
if fMonitorRec <> nil then
Expand Down

0 comments on commit bcdef1f

Please sign in to comment.