Permalink
Browse files

Fix compiler warnings in MSVC, #448 (#453)

1 parent 147d909 commit 3757b2023b71d183a341677feee693c71c2e0766 @tambry tambry committed with Dec 13, 2016
Showing with 4 additions and 4 deletions.
  1. +2 −2 src/emitterutils.cpp
  2. +2 −2 src/emitterutils.h
@@ -354,7 +354,7 @@ bool WriteDoubleQuotedString(ostream_wrapper& out, const std::string& str,
}
bool WriteLiteralString(ostream_wrapper& out, const std::string& str,
- int indent) {
+ std::size_t indent) {
out << "|\n";
out << IndentTo(indent);
int codePoint;
@@ -393,7 +393,7 @@ bool WriteChar(ostream_wrapper& out, char ch) {
}
bool WriteComment(ostream_wrapper& out, const std::string& str,
- int postCommentIndent) {
+ std::size_t postCommentIndent) {
const std::size_t curIndent = out.col();
out << "#" << Indentation(postCommentIndent);
out.set_comment();
View
@@ -34,10 +34,10 @@ bool WriteSingleQuotedString(ostream_wrapper& out, const std::string& str);
bool WriteDoubleQuotedString(ostream_wrapper& out, const std::string& str,
bool escapeNonAscii);
bool WriteLiteralString(ostream_wrapper& out, const std::string& str,
- int indent);
+ std::size_t indent);
bool WriteChar(ostream_wrapper& out, char ch);
bool WriteComment(ostream_wrapper& out, const std::string& str,
- int postCommentIndent);
+ std::size_t postCommentIndent);
bool WriteAlias(ostream_wrapper& out, const std::string& str);
bool WriteAnchor(ostream_wrapper& out, const std::string& str);
bool WriteTag(ostream_wrapper& out, const std::string& str, bool verbatim);

0 comments on commit 3757b20

Please sign in to comment.