Skip to content

Commit

Permalink
Fix build with Visual Studio
Browse files Browse the repository at this point in the history
Regression from commit 8ee6ed7.
  • Loading branch information
jyrkive committed Mar 4, 2019
1 parent be0d938 commit 0379e2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/reports.cpp
Expand Up @@ -621,7 +621,7 @@ static config unit_vision(const unit* u)
tooltip << _("vision:") << ' ' << u->vision() << '\n';
}
if (u->jamming() != 0) {
if (str.tellp() == 0)
if (static_cast<std::streamoff>(str.tellp()) == 0)
str << _("jamming:") << ' ' << u->jamming();
tooltip << _("jamming:") << ' ' << u->jamming() << '\n';
}
Expand Down

0 comments on commit 0379e2e

Please sign in to comment.