Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

fix bug in setting sock options on types of int #33

Merged
merged 1 commit into from

2 participants

Eric Merritt Yurii Rashkovskii
Eric Merritt

No description provided.

Yurii Rashkovskii yrashk merged commit d9e8614 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 7, 2012
  1. Eric Merritt
This page is out of date. Refresh to see the latest.
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;
Something went wrong with that request. Please try again.