[sword-cvs] sword/src/modules/common swcipher.cpp,1.8,1.9
sword@www.crosswire.org
sword@www.crosswire.org
Tue, 12 Aug 2003 03:37:09 -0700
Update of /usr/local/cvsroot/sword/src/modules/common
In directory www:/tmp/cvs-serv6658/src/modules/common
Modified Files:
swcipher.cpp
Log Message:
Index: swcipher.cpp
===================================================================
RCS file: /usr/local/cvsroot/sword/src/modules/common/swcipher.cpp,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- swcipher.cpp 27 Jun 2003 01:41:07 -0000 1.8
+++ swcipher.cpp 12 Aug 2003 10:37:06 -0000 1.9
@@ -31,7 +31,7 @@
}
-char *SWCipher::Buf(const char *ibuf, unsigned int ilen)
+char *SWCipher::Buf(const char *ibuf, unsigned long ilen)
{
if (ibuf) {
@@ -55,7 +55,7 @@
}
-char *SWCipher::cipherBuf(unsigned int *ilen, const char *ibuf)
+char *SWCipher::cipherBuf(unsigned long *ilen, const char *ibuf)
{
if (ibuf) {
@@ -87,7 +87,7 @@
{
if (!cipher) {
work = master;
- for (int i = 0; i < len; i++)
+ for (unsigned long i = 0; i < len; i++)
buf[i] = work.encrypt(buf[i]);
cipher = true;
}
@@ -106,7 +106,7 @@
{
if (cipher) {
work = master;
- int i;
+ unsigned long i;
for (i = 0; i < len; i++)
buf[i] = work.decrypt(buf[i]);
buf[i] = 0;