aboutsummaryrefslogtreecommitdiff
path: root/libbutl/manifest-rewriter.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2019-03-13 00:38:34 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2019-03-13 13:58:03 +0300
commita82ec3c21ac680e5bf9614bdcf50ea78a52542ce (patch)
tree343ac89888ac8e4eca5899d0cec7f2cb512aee64 /libbutl/manifest-rewriter.cxx
parent83ee2939cb9b6766bbf0df60347be2da6d6f0adf (diff)
Add workarounds for all cl releases until 20.00
Diffstat (limited to 'libbutl/manifest-rewriter.cxx')
-rw-r--r--libbutl/manifest-rewriter.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/libbutl/manifest-rewriter.cxx b/libbutl/manifest-rewriter.cxx
index f504c35..2be53f1 100644
--- a/libbutl/manifest-rewriter.cxx
+++ b/libbutl/manifest-rewriter.cxx
@@ -13,6 +13,7 @@
#ifndef __cpp_lib_modules
#include <string>
#include <cstdint> // uint64_t
+#include <cstddef> // size_t
#endif
// Other includes.
@@ -99,7 +100,9 @@ namespace butl
os << ' ';
manifest_serializer s (os, path_.string ());
- s.write_value (nv.value, nv.colon_pos - nv.start_pos + 2);
+
+ s.write_value (nv.value,
+ static_cast<size_t> (nv.colon_pos - nv.start_pos + 2));
}
os << suffix;
@@ -132,7 +135,8 @@ namespace butl
if (!nv.value.empty ())
{
os << ' ';
- s.write_value (nv.value, nv.colon_pos - nv.start_pos + 2);
+ s.write_value (nv.value,
+ static_cast<size_t> (nv.colon_pos - nv.start_pos + 2));
}
os << suffix;