File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ inline static void decodePrefixedString(
125125 unsigned * length, char const ** value)
126126{
127127 if (!isPrefixed) {
128- *length = strlen (prefixed);
128+ *length = static_cast < unsigned >( strlen (prefixed) );
129129 *value = prefixed;
130130 } else {
131131 *length = *reinterpret_cast <unsigned const *>(prefixed);
Original file line number Diff line number Diff line change @@ -346,7 +346,7 @@ void FastWriter::writeValue(const Value& value) {
346346 const std::string& name = *it;
347347 if (it != members.begin ())
348348 document_ += ' ,' ;
349- document_ += valueToQuotedStringN (name.data (), name.length ());
349+ document_ += valueToQuotedStringN (name.data (), static_cast < unsigned >( name.length () ));
350350 document_ += yamlCompatiblityEnabled_ ? " : " : " :" ;
351351 writeValue (value[name]);
352352 }
@@ -906,7 +906,7 @@ void BuiltStyledStreamWriter::writeValue(Value const& value) {
906906 std::string const & name = *it;
907907 Value const & childValue = value[name];
908908 writeCommentBeforeValue (childValue);
909- writeWithIndent (valueToQuotedStringN (name.data (), name.length ()));
909+ writeWithIndent (valueToQuotedStringN (name.data (), static_cast < unsigned >( name.length () )));
910910 *sout_ << colonSymbol_;
911911 writeValue (childValue);
912912 if (++it == members.end ()) {
You can’t perform that action at this time.
0 commit comments