Permalink
Browse files

Use type of int instead of uint64_t for ZMQ_SNDHWM and ZMQ_RCVHWM

  • Loading branch information...
1 parent 3cfcf2c commit 14569457a0cf479266cca7e9315e28df5dbfce41 @soplwang soplwang committed Feb 1, 2013
Showing with 4 additions and 4 deletions.
  1. +4 −4 binding.cc
View
8 binding.cc
@@ -393,8 +393,6 @@ namespace zmq {
// FIXME: How to handle ZMQ_FD on Windows?
switch (option) {
case 1:
- case 23:
- case 24:
case ZMQ_AFFINITY:
case ZMQ_SNDBUF:
case ZMQ_RCVBUF:
@@ -409,6 +407,8 @@ namespace zmq {
return socket->GetSockOpt<char*>(option);
case ZMQ_EVENTS:
return socket->GetSockOpt<uint32_t>(option);
+ case 23:
+ case 24:
case ZMQ_FD:
case ZMQ_TYPE:
case ZMQ_LINGER:
@@ -438,8 +438,6 @@ namespace zmq {
switch (option) {
case 1:
- case 23:
- case 24:
case ZMQ_AFFINITY:
case ZMQ_SNDBUF:
case ZMQ_RCVBUF:
@@ -453,6 +451,8 @@ namespace zmq {
case ZMQ_SUBSCRIBE:
case ZMQ_UNSUBSCRIBE:
return socket->SetSockOpt<char*>(option, args[1]);
+ case 23:
+ case 24:
case ZMQ_LINGER:
case ZMQ_RECONNECT_IVL:
case ZMQ_BACKLOG:

0 comments on commit 1456945

Please sign in to comment.