summaryrefslogtreecommitdiff
path: root/src/err.cpp
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@250bpm.com>2011-05-15 13:12:09 +0200
committerMartin Sustrik <sustrik@250bpm.com>2011-05-15 13:12:09 +0200
commit49df2f416cd43e9e18f3dbd964271c5cca835729 (patch)
tree815d659e54170a47fd812bc55bbda6b9f0ec7581 /src/err.cpp
parent49387874efe790713f4a090e03a97212f4889163 (diff)
Fixes warning when compiling with MSVC on Win64
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
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);
}