summaryrefslogtreecommitdiff
path: root/src/options.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/options.cpp')
-rw-r--r--src/options.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/options.cpp b/src/options.cpp
index cdfccc6..a70b9a3 100644
--- a/src/options.cpp
+++ b/src/options.cpp
@@ -76,7 +76,7 @@ int zmq::options_t::setsockopt (int option_, const void *optval_,
return 0;
case ZMQ_IDENTITY:
- identity.assign ((const char*) optval_, optvallen_);
+ identity.assign ((const unsigned char*) optval_, optvallen_);
return 0;
case ZMQ_RATE: