[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdelibs/khtml/misc
From:       Christian Ehrlicher <Ch.Ehrlicher () gmx ! de>
Date:       2008-10-13 21:53:53
Message-ID: 1223934833.575752.29011.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 871108 by chehrlic:

some win32/msvc compile++ but khtml still does not compile on win32 atm

 M  +3 -3      StringHash.h  


--- trunk/KDE/kdelibs/khtml/misc/StringHash.h #871107:871108
@@ -146,8 +146,8 @@
             
             // Main loop
             for (; l > 0; l--) {
-                hash += QChar::toCaseFolded((uint32_t)s[0]);
-                tmp = (QChar::toCaseFolded((uint32_t)s[1]) << 11) ^ hash;
+                hash += QChar::toCaseFolded((unsigned int)s[0]);
+                tmp = (QChar::toCaseFolded((unsigned int)s[1]) << 11) ^ hash;
                 hash = (hash << 16) ^ tmp;
                 s += 2;
                 hash += hash >> 11;
@@ -155,7 +155,7 @@
             
             // Handle end case
             if (rem) {
-                hash += QChar::toCaseFolded((uint32_t)s[0]);
+                hash += QChar::toCaseFolded((unsigned int)s[0]);
                 hash ^= hash << 11;
                 hash += hash >> 17;
             }
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic