New code did not compile in Visual Studio

0.8
Bruno Van de Velde 2017-02-15 18:44:55 +01:00
parent 9681b7cadb
commit 1b3b03a849
1 changed files with 1 additions and 1 deletions

View File

@ -496,7 +496,7 @@ namespace tgui
error = parseRootSection(stream, root);
if (!error.empty())
{
if (stream.tellg() != -1)
if (stream.tellg() != std::stringstream::pos_type(-1))
{
std::string str = stream.str();
std::size_t lineNumber = std::count(str.begin(), str.begin() + stream.tellg(), '\n') + 1;