Patch for kdecore/ksycocadict.cpp..

Alex Zepeda zipzippy at sonic.net
Sat Jun 15 05:58:29 BST 2002


This should get rid of at least one warning:

Index: ksycocadict.cpp
===================================================================
RCS file: /home/kde/kdelibs/kdecore/ksycocadict.cpp,v
retrieving revision 1.22
diff -b -d -u -1 -r1.22 ksycocadict.cpp
--- ksycocadict.cpp	2002/05/01 01:04:41	1.22
+++ ksycocadict.cpp	2002/06/15 04:57:32
@@ -289,3 +289,3 @@
    // int sz = d->count()*5-1;
-   register int sz = count()*4 + 1;
+   register unsigned int sz = count()*4 + 1;
    while(!(((sz % 3) && (sz % 5) && (sz % 7) && (sz % 11) && (sz % 13)))) sz+=2;
@@ -356,3 +356,3 @@
    //kdDebug(7011) << "Clearing hashtable..." << endl;
-   for(int i=0; i < sz; i++)
+   for (unsigned int i=0; i < sz; i++)
    {

Objections?  Is there really a possibility of a negative size?

- alex




More information about the kde-core-devel mailing list