From dcf54621d4e319758be14d3ac81ae5dc01c2e054 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sat, 7 Aug 2010 20:33:24 +0200 Subject: [PATCH] visual studio: fixed a few compiler warnings (when saving istream::get result in a char) --- lib/preprocessor.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/preprocessor.cpp b/lib/preprocessor.cpp index c8af63768..d577a0ee6 100644 --- a/lib/preprocessor.cpp +++ b/lib/preprocessor.cpp @@ -1923,7 +1923,7 @@ static bool getlines(std::istream &istr, std::string &line) return false; line = ""; int parlevel = 0; - for (char ch = istr.get(); istr.good(); ch = istr.get()) + for (char ch = (char)istr.get(); istr.good(); ch = (char)istr.get()) { if (ch == '\'' || ch == '\"') { @@ -1933,13 +1933,13 @@ static bool getlines(std::istream &istr, std::string &line) { if (c == '\\') { - c = istr.get(); + c = (char)istr.get(); if (!istr.good()) return true; line += c; } - c = istr.get(); + c = (char)istr.get(); if (!istr.good()) return true; if (c == '\n' && line.compare(0, 1, "#") == 0)