We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83bc9c7 commit 2713f4fCopy full SHA for 2713f4f
src/lib_json/json_writer.cpp
@@ -560,7 +560,7 @@ void StyledWriter::writeWithIndent(const std::string& value) {
560
void StyledWriter::indent() { indentString_ += std::string(indentSize_, ' '); }
561
562
void StyledWriter::unindent() {
563
- assert(int(indentString_.size()) >= indentSize_);
+ assert(indentString_.size() >= indentSize_);
564
indentString_.resize(indentString_.size() - indentSize_);
565
}
566
@@ -857,7 +857,7 @@ struct BuiltStyledStreamWriter : public StreamWriter
857
858
ChildValues childValues_;
859
std::string indentString_;
860
- int rightMargin_;
+ unsigned int rightMargin_;
861
std::string indentation_;
862
CommentStyle::Enum cs_;
863
std::string colonSymbol_;
0 commit comments