Skip to content

Commit

Permalink
Fix a sign-compare
Browse files Browse the repository at this point in the history
  • Loading branch information
cdunn2001 committed Feb 7, 2016
1 parent 83bc9c7 commit 2713f4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib_json/json_writer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ void StyledWriter::writeWithIndent(const std::string& value) {
void StyledWriter::indent() { indentString_ += std::string(indentSize_, ' '); }

void StyledWriter::unindent() {
assert(int(indentString_.size()) >= indentSize_);
assert(indentString_.size() >= indentSize_);
indentString_.resize(indentString_.size() - indentSize_);
}

Expand Down Expand Up @@ -857,7 +857,7 @@ struct BuiltStyledStreamWriter : public StreamWriter

ChildValues childValues_;
std::string indentString_;
int rightMargin_;
unsigned int rightMargin_;
std::string indentation_;
CommentStyle::Enum cs_;
std::string colonSymbol_;
Expand Down

0 comments on commit 2713f4f

Please sign in to comment.