Skip to content
  • cwzwarich@webkit.org's avatar
    Reviewed by Darin Adler. · 43c756bb
    cwzwarich@webkit.org authored
    Clang -Wcast-align gives an error in WebBasePluginPackage.mm
    https://bugs.webkit.org/show_bug.cgi?id=51144
    
    Fix an alignment issue. OSSwapInt32 takes data that is 32-bit aligned on ARM, but
    we were calling it on a byte array 32 bits at a time. While this is okay in practice,
    since TCMalloc won't give us a non-32-bit aligned block array of bytes and Vector's
    inline storage is at the beginning of the Vector, it is still better to fix this
    and silence the warning.
    
    * Plugins/WebBasePluginPackage.mm:
    (swapIntsInHeader):
    (-[WebBasePluginPackage isNativeLibraryData:]):
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@74172 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    43c756bb