summaryrefslogtreecommitdiffstats
path: root/src/corelib
diff options
context:
space:
mode:
authorGareth Stockwell <ext-gareth.stockwell@nokia.com>2010-10-01 14:33:37 (GMT)
committerGareth Stockwell <ext-gareth.stockwell@nokia.com>2010-10-01 14:40:54 (GMT)
commitd1b2480f33641055f2d729212addf059577a4e01 (patch)
tree678328e008b400ad73e09f103b8363aad385595a /src/corelib
parentc168be1aa3dc4f7ccc70d530244fc97af0b4d1e1 (diff)
downloadQt-d1b2480f33641055f2d729212addf059577a4e01.zip
Qt-d1b2480f33641055f2d729212addf059577a4e01.tar.gz
Qt-d1b2480f33641055f2d729212addf059577a4e01.tar.bz2
Fixed crash on startup in Symbian debug build
This fixes a typo in a debug-only function in the hybrid heap allocator. The typo causes an assertion to fail during startup of applications, when using a debug build of Qt. Reviewed-by: mread
Diffstat (limited to 'src/corelib')
-rw-r--r--src/corelib/arch/symbian/debugfunction.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/arch/symbian/debugfunction.cpp b/src/corelib/arch/symbian/debugfunction.cpp
index 91f6917..31937e8 100644
--- a/src/corelib/arch/symbian/debugfunction.cpp
+++ b/src/corelib/arch/symbian/debugfunction.cpp
@@ -1105,7 +1105,7 @@ void RHybridHeap::DoCheckSlab(slab* aSlab, TAllocatorType aSlabType, TAny* aBfr)
unsigned used = SlabHeaderUsedm4(h)+4;
unsigned size = SlabHeaderSize(h);
__HEAP_CORRUPTED_TEST( (used < SLABSIZE),ETHeapBadCellAddress, aBfr, aSlab);
- __HEAP_CORRUPTED_TEST( ((size > 3 ) && (size < MAXSLABSIZE)), ETHeapBadCellAddress,aBfr,aSlab);
+ __HEAP_CORRUPTED_TEST( ((size > 3 ) && (size <= MAXSLABSIZE)), ETHeapBadCellAddress,aBfr,aSlab);
unsigned count = 0;
switch ( aSlabType )