Blame webkitgtk-2.8.0-s390_fixes.patch

6e68ee
diff -up webkitgtk-2.8.0/Source/bmalloc/bmalloc/Algorithm.h.s390_fixes webkitgtk-2.8.0/Source/bmalloc/bmalloc/Algorithm.h
6e68ee
--- webkitgtk-2.8.0/Source/bmalloc/bmalloc/Algorithm.h.s390_fixes	2015-03-04 15:25:17.000000000 +0100
6e68ee
+++ webkitgtk-2.8.0/Source/bmalloc/bmalloc/Algorithm.h	2015-03-27 10:59:40.245010499 +0100
6e68ee
@@ -66,7 +66,7 @@ inline constexpr bool isPowerOfTwo(size_
6e68ee
 template<typename t=""> inline T roundUpToMultipleOf(size_t divisor, T x)
6e68ee
 {
6e68ee
     BASSERT(isPowerOfTwo(divisor));
6e68ee
-    return reinterpret_cast<t>((reinterpret_cast<uintptr_t>(x) + (divisor - 1)) & ~(divisor - 1));
6e68ee
+    return reinterpret_cast<t>((reinterpret_cast<size_t>(x) + (divisor - 1)) & ~(divisor - 1));
6e68ee
 }
6e68ee
 
6e68ee
 template<size_t divisor,="" typename="" t=""> inline constexpr T roundUpToMultipleOf(T x)
6e68ee
diff -up webkitgtk-2.8.0/Source/bmalloc/bmalloc/Sizes.h.s390_fixes webkitgtk-2.8.0/Source/bmalloc/bmalloc/Sizes.h
6e68ee
--- webkitgtk-2.8.0/Source/bmalloc/bmalloc/Sizes.h.s390_fixes	2015-03-04 15:25:17.000000000 +0100
6e68ee
+++ webkitgtk-2.8.0/Source/bmalloc/bmalloc/Sizes.h	2015-03-27 10:59:40.245010499 +0100
6e68ee
@@ -99,7 +99,7 @@ namespace Sizes {
6e68ee
     inline size_t sizeClass(size_t size)
6e68ee
     {
6e68ee
         static const size_t sizeClassMask = (mediumMax / alignment) - 1;
6e68ee
-        return mask((size - 1) / alignment, sizeClassMask);
6e68ee
+        return mask(static_cast<uintptr_t>((size - 1) / alignment), sizeClassMask);
6e68ee
     }
6e68ee
 
6e68ee
     inline size_t objectSize(size_t sizeClass)