Permalink
Browse files

Merge pull request #33 from ericbmerritt/master

Fix bug in setting sock options on types of int
  • Loading branch information...
2 parents 30249a3 + 2b07573 commit d9e86147d7cda9088d0e33476c89da3ef4e0b2b8 @yrashk yrashk committed Mar 7, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 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;

0 comments on commit d9e8614

Please sign in to comment.