summaryrefslogtreecommitdiff
path: root/src/err.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/err.cpp')
-rw-r--r--src/err.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/err.cpp b/src/err.cpp
index 8ac7dd9..31e2974 100644
--- a/src/err.cpp
+++ b/src/err.cpp
@@ -190,7 +190,7 @@ void zmq::win_error (char *buffer_, size_t buffer_size_)
DWORD errcode = GetLastError ();
DWORD rc = FormatMessageA (FORMAT_MESSAGE_FROM_SYSTEM |
FORMAT_MESSAGE_IGNORE_INSERTS, NULL, errcode, MAKELANGID(LANG_NEUTRAL,
- SUBLANG_DEFAULT), buffer_, buffer_size_, NULL );
+ SUBLANG_DEFAULT), buffer_, (DWORD) buffer_size_, NULL );
zmq_assert (rc);
}