File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ inline static void decodePrefixedString(
126
126
unsigned * length, char const ** value)
127
127
{
128
128
if (!isPrefixed) {
129
- *length = strlen (prefixed);
129
+ *length = static_cast < unsigned >( strlen (prefixed) );
130
130
*value = prefixed;
131
131
} else {
132
132
*length = *reinterpret_cast <unsigned const *>(prefixed);
Original file line number Diff line number Diff line change @@ -343,7 +343,7 @@ void FastWriter::writeValue(const Value& value) {
343
343
const std::string& name = *it;
344
344
if (it != members.begin ())
345
345
document_ += ' ,' ;
346
- document_ += valueToQuotedStringN (name.data (), name.length ());
346
+ document_ += valueToQuotedStringN (name.data (), static_cast < unsigned >( name.length () ));
347
347
document_ += yamlCompatiblityEnabled_ ? " : " : " :" ;
348
348
writeValue (value[name]);
349
349
}
@@ -903,7 +903,7 @@ void BuiltStyledStreamWriter::writeValue(Value const& value) {
903
903
std::string const & name = *it;
904
904
Value const & childValue = value[name];
905
905
writeCommentBeforeValue (childValue);
906
- writeWithIndent (valueToQuotedStringN (name.data (), name.length ()));
906
+ writeWithIndent (valueToQuotedStringN (name.data (), static_cast < unsigned >( name.length () )));
907
907
*sout_ << colonSymbol_;
908
908
writeValue (childValue);
909
909
if (++it == members.end ()) {
You can’t perform that action at this time.
0 commit comments