Update of /cvsroot/compbench/CompBenchmarks++/libcompbenchmarks/System
In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv25935
Modified Files:
System.cpp
Log Message:
Fix minor 64-bits/32-bits issue on std::string handling.
Index: System.cpp
===================================================================
RCS file: /cvsroot/compbench/CompBenchmarks++/libcompbenchmarks/System/System.cpp,v
retrieving revision 1.21
retrieving revision 1.22
diff -C2 -d -r1.21 -r1.22
*** System.cpp 27 Aug 2007 20:20:58 -0000 1.21
--- System.cpp 27 Aug 2007 20:28:49 -0000 1.22
***************
*** 368,375 ****
std::string System::Split(const std::string& str, const std::string& delim, unsigned int wantedIndex)
{
! unsigned int offset = 0;
! int delimIndex = 0;
! unsigned int nowIndex = 0;
! int oneTime = 0;
delimIndex = str.find(delim, offset);
--- 368,375 ----
std::string System::Split(const std::string& str, const std::string& delim, unsigned int wantedIndex)
{
! unsigned int offset = 0;
! std::string::size_type delimIndex = 0;
! unsigned int nowIndex = 0;
! int oneTime = 0;
delimIndex = str.find(delim, offset);
|