From e9f419c8191aae7d0b5082201d4114dbca7f2e06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20H=C3=B6glund?= Date: Tue, 25 May 2010 17:34:17 +0000 Subject: [PATCH] Fix a 64-bit issue in BlurEffect::updateBlurRegion(). BUG: 235620 FIXED-IN: 4.5 beta2 svn path=/trunk/KDE/kdebase/workspace/; revision=1130567 --- effects/blur/blur.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/effects/blur/blur.cpp b/effects/blur/blur.cpp index cd92903b75..924c104079 100644 --- a/effects/blur/blur.cpp +++ b/effects/blur/blur.cpp @@ -82,9 +82,9 @@ void BlurEffect::updateBlurRegion(EffectWindow *w) const QRegion region; const QByteArray value = w->readProperty(net_wm_blur_region, XA_CARDINAL, 32); - if (value.size() > 0 && !(value.size() % (4 * sizeof(quint32)))) { - const quint32 *cardinals = reinterpret_cast(value.constData()); - for (unsigned int i = 0; i < value.size() / sizeof(quint32);) { + if (value.size() > 0 && !(value.size() % (4 * sizeof(unsigned long)))) { + const unsigned long *cardinals = reinterpret_cast(value.constData()); + for (unsigned int i = 0; i < value.size() / sizeof(unsigned long);) { int x = cardinals[i++]; int y = cardinals[i++]; int w = cardinals[i++];