⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 179927 in webkit


Ignore:
Timestamp:
Feb 11, 2015, 8:12:13 AM (12 years ago)
Author:
Csaba Osztrogonác
Message:

bmalloc buildfix on 32 bit Linux (x86/ARM)
https://bugs.webkit.org/show_bug.cgi?id=141472

Reviewed by Gyuyoung Kim.

  • bmalloc/Algorithm.h:

(bmalloc::roundUpToMultipleOf):

  • bmalloc/FixedVector.h:

(bmalloc::FixedVector::clear):

  • bmalloc/Sizes.h:

(bmalloc::Sizes::sizeClass):

Location:
trunk/Source/bmalloc
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/bmalloc/ChangeLog

    r179923 r179927  
     12015-02-11  Csaba Osztrogonác  <ossy@webkit.org>
     2
     3        bmalloc buildfix on 32 bit Linux (x86/ARM)
     4        https://bugs.webkit.org/show_bug.cgi?id=141472
     5
     6        Reviewed by Gyuyoung Kim.
     7
     8        * bmalloc/Algorithm.h:
     9        (bmalloc::roundUpToMultipleOf):
     10        * bmalloc/FixedVector.h:
     11        (bmalloc::FixedVector::clear):
     12        * bmalloc/Sizes.h:
     13        (bmalloc::Sizes::sizeClass):
     14
    1152015-02-11  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
    216
  • trunk/Source/bmalloc/bmalloc/Algorithm.h

    r178727 r179927  
    7171{
    7272    BASSERT(isPowerOfTwo(divisor));
    73     return reinterpret_cast<T>((reinterpret_cast<uintptr_t>(x) + (divisor - 1ul)) & ~(divisor - 1ul));
     73    return reinterpret_cast<T>((reinterpret_cast<uintptr_t>(x) + (divisor - 1)) & ~(divisor - 1));
    7474}
    7575
  • trunk/Source/bmalloc/bmalloc/FixedVector.h

    r166956 r179927  
    6060    void shrink(size_t);
    6161
    62     void clear() { shrink(0ul); }
     62    void clear() { shrink(static_cast<size_t>(0)); }
    6363    bool isEmpty() { return !m_size; }
    6464
  • trunk/Source/bmalloc/bmalloc/Sizes.h

    r178621 r179927  
    101101    {
    102102        static const size_t sizeClassMask = (mediumMax / alignment) - 1;
    103         return mask((size - 1ul) / alignment, sizeClassMask);
     103        return mask((size - 1) / alignment, sizeClassMask);
    104104    }
    105105
Note: See TracChangeset for help on using the changeset viewer.