Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #33 from ericbmerritt/master

Fix bug in setting sock options on types of int
  • Loading branch information...
commit d9e86147d7cda9088d0e33476c89da3ef4e0b2b8 2 parents 30249a3 + 2b07573
Yurii Rashkovskii yrashk authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  c_src/erlzmq_nif.c
2  c_src/erlzmq_nif.c
View
@@ -344,7 +344,7 @@ NIF(erlzmq_nif_setsockopt)
case ZMQ_LINGER:
case ZMQ_RECONNECT_IVL:
case ZMQ_BACKLOG:
- if (! enif_get_int(env, argv[1], &value_int)) {
+ if (! enif_get_int(env, argv[2], &value_int)) {
return enif_make_badarg(env);
}
option_value = &value_int;
Please sign in to comment.
Something went wrong with that request. Please try again.