aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-05-18 22:40:46 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-05-18 22:40:46 +0000
commit20777ded11a5e5428403a5a3bc29aa3b9c78bfa8 (patch)
treea0f6f3a55710425f5e4feb4bfb1700937103d0ed
parent18f66783bb21d439a291bc646a1eb74cef0e803d (diff)
downloadpaludis-20777ded11a5e5428403a5a3bc29aa3b9c78bfa8.tar.gz
paludis-20777ded11a5e5428403a5a3bc29aa3b9c78bfa8.tar.xz
backtrace uses int, not size_t
-rw-r--r--test/test_runner.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_runner.cc b/test/test_runner.cc
index 84aa530..fe45818 100644
--- a/test/test_runner.cc
+++ b/test/test_runner.cc
@@ -50,11 +50,11 @@ namespace
{
#if defined(__GLIBC__)
void * bt[50];
- size_t sz = backtrace(bt, 50);
+ int sz = backtrace(bt, 50);
char * * symbols = backtrace_symbols(bt, sz);
std::cerr << "Stack dump:" << std::endl;
- for (unsigned n(0) ; n < sz ; ++n)
+ for (int n(0) ; n < sz ; ++n)
{
std::string sym(symbols[n]);