diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/kernel/qpixelformat.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/kernel/qpixelformat.h b/src/gui/kernel/qpixelformat.h index d11002cbc9..60bfbed824 100644 --- a/src/gui/kernel/qpixelformat.h +++ b/src/gui/kernel/qpixelformat.h @@ -75,7 +75,9 @@ class QPixelFormat enum Field { ModelField = 0, - FirstField = ModelField + ModelFieldWidth, + // work around bug in old clang versions: when building webkit + // with XCode 4.6 and older this fails compilation, thus cast to int + FirstField = ModelField + int(ModelFieldWidth), SecondField = FirstField + FirstFieldWidth, ThirdField = SecondField + SecondFieldWidth, FourthField = ThirdField + ThirdFieldWidth, |