mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-06-30 17:33:27 +02:00
Fix a sign-compare
This commit is contained in:
parent
83bc9c7cf6
commit
2713f4f456
@ -560,7 +560,7 @@ void StyledWriter::writeWithIndent(const std::string& value) {
|
|||||||
void StyledWriter::indent() { indentString_ += std::string(indentSize_, ' '); }
|
void StyledWriter::indent() { indentString_ += std::string(indentSize_, ' '); }
|
||||||
|
|
||||||
void StyledWriter::unindent() {
|
void StyledWriter::unindent() {
|
||||||
assert(int(indentString_.size()) >= indentSize_);
|
assert(indentString_.size() >= indentSize_);
|
||||||
indentString_.resize(indentString_.size() - indentSize_);
|
indentString_.resize(indentString_.size() - indentSize_);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -857,7 +857,7 @@ private:
|
|||||||
|
|
||||||
ChildValues childValues_;
|
ChildValues childValues_;
|
||||||
std::string indentString_;
|
std::string indentString_;
|
||||||
int rightMargin_;
|
unsigned int rightMargin_;
|
||||||
std::string indentation_;
|
std::string indentation_;
|
||||||
CommentStyle::Enum cs_;
|
CommentStyle::Enum cs_;
|
||||||
std::string colonSymbol_;
|
std::string colonSymbol_;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user