diff options
-rw-r--r-- | src/generic/util/eassert.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/generic/util/eassert.cc b/src/generic/util/eassert.cc index 91431ee2..c22a3232 100644 --- a/src/generic/util/eassert.cc +++ b/src/generic/util/eassert.cc @@ -34,8 +34,10 @@ std::string AssertionFailure::errmsg() const { if(msg.empty()) return ssprintf("%s:%d: %s: Assertion \"%s\" failed.", - file.c_str(), line, func.c_str(), exp.c_str()); + file.c_str(), static_cast<unsigned int>(line), + func.c_str(), exp.c_str()); else return ssprintf("%s:%d: %s: %s: Assertion \"%s\" failed.", - file.c_str(), line, func.c_str(), msg.c_str(), exp.c_str()); + file.c_str(), static_cast<unsigned int>(line), + func.c_str(), msg.c_str(), exp.c_str()); } |