Skip to content

Commit 2713f4f

Browse files
committed
Fix a sign-compare
1 parent 83bc9c7 commit 2713f4f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib_json/json_writer.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ void StyledWriter::writeWithIndent(const std::string& value) {
560560
void StyledWriter::indent() { indentString_ += std::string(indentSize_, ' '); }
561561

562562
void StyledWriter::unindent() {
563-
assert(int(indentString_.size()) >= indentSize_);
563+
assert(indentString_.size() >= indentSize_);
564564
indentString_.resize(indentString_.size() - indentSize_);
565565
}
566566

@@ -857,7 +857,7 @@ struct BuiltStyledStreamWriter : public StreamWriter
857857

858858
ChildValues childValues_;
859859
std::string indentString_;
860-
int rightMargin_;
860+
unsigned int rightMargin_;
861861
std::string indentation_;
862862
CommentStyle::Enum cs_;
863863
std::string colonSymbol_;

0 commit comments

Comments
 (0)