From 3757b2023b71d183a341677feee693c71c2e0766 Mon Sep 17 00:00:00 2001 From: Raul Tambre Date: Tue, 13 Dec 2016 23:37:29 +0200 Subject: [PATCH] Fix compiler warnings in MSVC, #448 (#453) --- src/emitterutils.cpp | 4 ++-- src/emitterutils.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/emitterutils.cpp b/src/emitterutils.cpp index 93c2f9b..147738a 100644 --- a/src/emitterutils.cpp +++ b/src/emitterutils.cpp @@ -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(); diff --git a/src/emitterutils.h b/src/emitterutils.h index 3a9c2f8..6cc7319 100644 --- a/src/emitterutils.h +++ b/src/emitterutils.h @@ -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);