File tree 2 files changed +3
-3
lines changed 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ inline static void decodePrefixedString(
125
125
unsigned * length, char const ** value)
126
126
{
127
127
if (!isPrefixed) {
128
- *length = strlen (prefixed);
128
+ *length = static_cast < unsigned >( strlen (prefixed) );
129
129
*value = prefixed;
130
130
} else {
131
131
*length = *reinterpret_cast <unsigned const *>(prefixed);
Original file line number Diff line number Diff line change @@ -354,7 +354,7 @@ void FastWriter::writeValue(const Value& value) {
354
354
const std::string& name = *it;
355
355
if (it != members.begin ())
356
356
document_ += ' ,' ;
357
- document_ += valueToQuotedStringN (name.data (), name.length ());
357
+ document_ += valueToQuotedStringN (name.data (), static_cast < unsigned >( name.length () ));
358
358
document_ += yamlCompatiblityEnabled_ ? " : " : " :" ;
359
359
writeValue (value[name]);
360
360
}
@@ -914,7 +914,7 @@ void BuiltStyledStreamWriter::writeValue(Value const& value) {
914
914
std::string const & name = *it;
915
915
Value const & childValue = value[name];
916
916
writeCommentBeforeValue (childValue);
917
- writeWithIndent (valueToQuotedStringN (name.data (), name.length ()));
917
+ writeWithIndent (valueToQuotedStringN (name.data (), static_cast < unsigned >( name.length () )));
918
918
*sout_ << colonSymbol_;
919
919
writeValue (childValue);
920
920
if (++it == members.end ()) {
You can’t perform that action at this time.
0 commit comments