summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Burrows <Daniel_Burrows@alumni.brown.edu>2007-06-16 18:27:03 +0000
committerDaniel Burrows <Daniel_Burrows@alumni.brown.edu>2007-06-16 18:27:03 +0000
commit0057c3ece5a49debc969789f6360fc00238cb679 (patch)
treee68ddf5d22597738d5cd4f5ad70872799a989da1
parent34e4eec3f9c03272f9e0278febaf36eccc033ba5 (diff)
downloadaptitude-0057c3ece5a49debc969789f6360fc00238cb679.tar.gz
[aptitude @ Explicitly cast "line" to an unsigned int to avoid build failures on platforms where not doing this tosses a warning.]
-rw-r--r--src/generic/util/eassert.cc6
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());
}