From ee4b509ac597f6ec353d37b4d40d59df52a02c32 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 22 Oct 2004 20:33:25 +0000 Subject: [PATCH] size fixes for x86-64 --- stepmania/src/archutils/Unix/BacktraceNames.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/stepmania/src/archutils/Unix/BacktraceNames.cpp b/stepmania/src/archutils/Unix/BacktraceNames.cpp index de60674786..dd33c21f76 100644 --- a/stepmania/src/archutils/Unix/BacktraceNames.cpp +++ b/stepmania/src/archutils/Unix/BacktraceNames.cpp @@ -77,7 +77,7 @@ CString BacktraceNames::Format() const if( ShortenedPath != "" ) { /* Abbreviate the module name. */ - unsigned slash = ShortenedPath.rfind('/'); + size_t slash = ShortenedPath.rfind('/'); if( slash != ShortenedPath.npos ) ShortenedPath = ShortenedPath.substr(slash+1); ShortenedPath = CString("(") + ShortenedPath + ")"; @@ -316,7 +316,7 @@ void BacktraceNames::FromString( CString s ) if( MangledAndOffset != "" ) { - unsigned plus = MangledAndOffset.rfind('+'); + size_t plus = MangledAndOffset.rfind('+'); if(plus == MangledAndOffset.npos) { @@ -410,8 +410,8 @@ void BacktraceNames::FromAddr( const void *p ) if (mangledAndFile.size() == 3) { File = mangledAndFile[2]; - unsigned pos = File.find('('); - unsigned start = (pos == File.npos ? 0 : pos+1); + size_t pos = File.find('('); + size_t start = (pos == File.npos ? 0 : pos+1); pos = File.rfind(')') - 1; File = File.substr(start, pos); } @@ -431,8 +431,8 @@ void BacktraceNames::FromAddr( const void *p ) if (mangledAndFile.size() > 3) { File = mangledAndFile[3]; - unsigned pos = File.find('('); - unsigned start = (pos == File.npos ? 0 : pos+1); + size_t pos = File.find('('); + size_t start = (pos == File.npos ? 0 : pos+1); pos = File.rfind(')') - 1; File = File.substr(start, pos); }