From 4d83649ef2480c21602bdd159417ce9082a2afd3 Mon Sep 17 00:00:00 2001 From: Thomas McGuire Date: Wed, 19 Nov 2008 17:47:05 +0000 Subject: [PATCH] Serial numbers are unsigned long, not quint32. This is the only possible reason I could imagine why it goes wrong like in bug 174866. It would also explain why I never could reproduce this with my 32 bit CPU. Maybe this even is the real root cause for the serial number == 0 bug?? In any case, I hope other places get the type right. BUG: 174866 svn path=/trunk/KDE/kdepim/; revision=886618 --- kmmsgdict.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kmmsgdict.cpp b/kmmsgdict.cpp index 7f28ca2be..64673a068 100644 --- a/kmmsgdict.cpp +++ b/kmmsgdict.cpp @@ -452,7 +452,7 @@ int KMMsgDict::readFolderIds( FolderStorage& storage ) KMMsgDictREntry *rentry = new KMMsgDictREntry(count); for (unsigned int index = 0; index < count; index++) { - quint32 msn; + unsigned long msn; bool readOk = fread(&msn, sizeof(msn), 1, fp); if (swapByteOrder)