mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2024-12-26 18:51:04 +08:00
More conversion fixes for gcc
This commit is contained in:
parent
779d8a33fc
commit
fef4b75796
@ -302,7 +302,7 @@ private:
|
||||
ChildValues childValues_;
|
||||
std::ostream* document_;
|
||||
std::string indentString_;
|
||||
int rightMargin_;
|
||||
unsigned int rightMargin_;
|
||||
std::string indentation_;
|
||||
bool addChildValues_ : 1;
|
||||
bool indented_ : 1;
|
||||
|
@ -524,7 +524,7 @@ bool StyledWriter::isMultineArray(const Value& value) {
|
||||
isMultiLine = true;
|
||||
}
|
||||
writeValue(value[index]);
|
||||
lineLength += childValues_[index].length();
|
||||
lineLength += static_cast<ArrayIndex>(childValues_[index].length());
|
||||
}
|
||||
addChildValues_ = false;
|
||||
isMultiLine = isMultiLine || lineLength >= rightMargin_;
|
||||
@ -743,7 +743,7 @@ bool StyledStreamWriter::isMultineArray(const Value& value) {
|
||||
isMultiLine = true;
|
||||
}
|
||||
writeValue(value[index]);
|
||||
lineLength += childValues_[index].length();
|
||||
lineLength += static_cast<ArrayIndex>(childValues_[index].length());
|
||||
}
|
||||
addChildValues_ = false;
|
||||
isMultiLine = isMultiLine || lineLength >= rightMargin_;
|
||||
@ -1026,7 +1026,7 @@ bool BuiltStyledStreamWriter::isMultineArray(Value const& value) {
|
||||
isMultiLine = true;
|
||||
}
|
||||
writeValue(value[index]);
|
||||
lineLength += childValues_[index].length();
|
||||
lineLength += static_cast<ArrayIndex>(childValues_[index].length());
|
||||
}
|
||||
addChildValues_ = false;
|
||||
isMultiLine = isMultiLine || lineLength >= rightMargin_;
|
||||
|
Loading…
x
Reference in New Issue
Block a user