diff --git a/Utils.h b/Utils.h index 750a2089..272db85c 100644 --- a/Utils.h +++ b/Utils.h @@ -284,7 +284,7 @@ inline bool WriteFile(const CString & sFilename, const CString & sData) { return true; } -inline bool ReadLine(const CString & sData, CString & sLine, u_int & iPos) { +inline bool ReadLine(const CString & sData, CString & sLine, CString::size_type & iPos) { sLine.clear(); if (iPos >= sData.length()) { diff --git a/modules/away.cpp b/modules/away.cpp index b435d8c0..09299883 100644 --- a/modules/away.cpp +++ b/modules/away.cpp @@ -18,6 +18,9 @@ * * * $Log$ + * Revision 1.20 2006/02/11 11:55:55 imaginos + * fixed wrong type being used on 64bit + * * Revision 1.19 2005/09/26 23:09:05 prozacx * Removed const from args in a bunch of hooks * @@ -153,7 +156,7 @@ public: if ( DecryptMessages( sFile ) ) { CString sLine; - u_int iPos = 0; + CString::size_type iPos = 0; while( ReadLine( sFile, sLine, iPos ) ) { sLine.Trim(); diff --git a/modules/email.cpp b/modules/email.cpp index 1fdb24d7..a9012ec8 100644 --- a/modules/email.cpp +++ b/modules/email.cpp @@ -15,6 +15,9 @@ * Author: imaginos * * $Log$ + * Revision 1.10 2006/02/11 11:55:55 imaginos + * fixed wrong type being used on 64bit + * * Revision 1.9 2005/09/07 05:14:28 prozacx * Renamed md5.cpp/h to MD5.cpp/h * @@ -211,7 +214,7 @@ public: EmailST tmp; tmp.sUidl = (char *)CMD5( m_sMailBuffer.substr( 0, 255 ) ); CString sLine; - u_int iPos = 0; + CString::size_type iPos = 0; while( ::ReadLine( m_sMailBuffer, sLine, iPos ) ) { sLine.Trim(); diff --git a/modules/savebuff.cpp b/modules/savebuff.cpp index cc115249..b57121d0 100644 --- a/modules/savebuff.cpp +++ b/modules/savebuff.cpp @@ -24,6 +24,9 @@ * better solution then plain text. * * $Log$ + * Revision 1.28 2006/02/11 11:55:55 imaginos + * fixed wrong type being used on 64bit + * * Revision 1.27 2005/09/06 22:43:02 prozacx * Added REQUIRESSL * @@ -196,7 +199,7 @@ public: return( true ); // reloaded a module probably in this case, so just verify we can decrypt the file CString sLine; - u_int iPos = 0; + CString::size_type iPos = 0; while( ReadLine( sFile, sLine, iPos ) ) { sLine.Trim(); @@ -272,7 +275,7 @@ public: if ( DecryptChannel( sArgs, sFile ) ) { CString sLine; - u_int iPos = 0; + CString::size_type iPos = 0; while( ReadLine( sFile, sLine, iPos ) ) { sLine.Trim(); @@ -300,7 +303,7 @@ public: if ( DecryptChannel( sChan, sFile ) ) { CString sLine; - u_int iPos = 0; + CString::size_type iPos = 0; while( ReadLine( sFile, sLine, iPos ) ) { sLine.Trim();