diff -r d7c1885c0106 -r b41fc9c39ca7 kernel/eka/memmodel/epoc/mmubase/ramalloc.cpp --- a/kernel/eka/memmodel/epoc/mmubase/ramalloc.cpp Fri Jun 18 18:06:39 2010 +0100 +++ b/kernel/eka/memmodel/epoc/mmubase/ramalloc.cpp Sat Jun 19 07:49:33 2010 +0100 @@ -396,9 +396,9 @@ aZone->iFlags &= ~KRamZoneFlagMark; // clear the mark as this zone is active // Check if power state of zone needs to be changed - if (iZonePowerFunc && !(iZonePwrState & (((TUint64)1) << aZone - iZones))) + if (iZonePowerFunc && !(iZonePwrState & (((TUint64)1) << (aZone - iZones)))) {//zone no longer empty so call variant to power RAM zone up if necessary - iZonePwrState |= (((TUint64)1) << aZone - iZones); + iZonePwrState |= (((TUint64)1) << (aZone - iZones)); if (iZoneCallbackInitSent) { @@ -541,7 +541,7 @@ if (iZonePowerFunc && !(aZone->iFlags & KRamZoneFlagClaiming) && aZone->iFreePages == aZone->iPhysPages) {// Zone is empty so call variant to power down RAM zone if desirable. - TUint64 pwrMask = ~(((TUint64)1) << aZone - iZones); + TUint64 pwrMask = ~(((TUint64)1) << (aZone - iZones)); iZonePwrState &= pwrMask; // Don't invoke callback until Init callback sent. @@ -1009,7 +1009,7 @@ for (; zone2 < lastZone; zone2++) { if (zone->iPref > zone2->iPref || - zone->iPref == zone2->iPref && zone->iFreePages > zone2->iFreePages) + (zone->iPref == zone2->iPref && zone->iFreePages > zone2->iFreePages)) { lowerZones++; }