From 264e6582c04e5fcb7c60287ffe14af0d62768fc9 Mon Sep 17 00:00:00 2001 From: Matt Thompson Date: Fri, 30 Nov 2018 01:16:44 -0800 Subject: [PATCH] Socket options should be integer, not long --- nanomsg/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nanomsg/__init__.py b/nanomsg/__init__.py index ab584dc..93eb3f7 100644 --- a/nanomsg/__init__.py +++ b/nanomsg/__init__.py @@ -159,7 +159,7 @@ class Socket(object): """ - _INT_PACKER = _Struct(str('l')) + _INT_PACKER = _Struct(str('i')) class _Endpoint(object): def __init__(self, socket, endpoint_id, address):