summaryrefslogtreecommitdiff
path: root/src/binary.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/binary.cc')
-rw-r--r--src/binary.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/binary.cc b/src/binary.cc
index e55861b4..7c3f0809 100644
--- a/src/binary.cc
+++ b/src/binary.cc
@@ -159,7 +159,7 @@ void write_string(std::ostream& out, const string& str)
{
write_guard(out, 0x3001);
- unsigned long len = str.length();
+ std::size_t len = str.length();
if (len > 255) {
assert(len < 65536);
write_number_nocheck<unsigned char>(out, 0xff);