diff options
author | Steve Block <steveblock@google.com> | 2011-05-25 19:08:45 +0100 |
---|---|---|
committer | Steve Block <steveblock@google.com> | 2011-06-08 13:51:31 +0100 |
commit | 2bde8e466a4451c7319e3a072d118917957d6554 (patch) | |
tree | 28f4a1b869a513e565c7760d0e6a06e7cf1fe95a /Source/WebKit2/Platform/CoreIPC/ArgumentEncoder.cpp | |
parent | 6939c99b71d9372d14a0c74a772108052e8c48c8 (diff) | |
download | external_webkit-2bde8e466a4451c7319e3a072d118917957d6554.zip external_webkit-2bde8e466a4451c7319e3a072d118917957d6554.tar.gz external_webkit-2bde8e466a4451c7319e3a072d118917957d6554.tar.bz2 |
Merge WebKit at r82507: Initial merge by git
Change-Id: I60ce9d780725b58b45e54165733a8ffee23b683e
Diffstat (limited to 'Source/WebKit2/Platform/CoreIPC/ArgumentEncoder.cpp')
-rw-r--r-- | Source/WebKit2/Platform/CoreIPC/ArgumentEncoder.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Source/WebKit2/Platform/CoreIPC/ArgumentEncoder.cpp b/Source/WebKit2/Platform/CoreIPC/ArgumentEncoder.cpp index aa71b0f..fb0b68b 100644 --- a/Source/WebKit2/Platform/CoreIPC/ArgumentEncoder.cpp +++ b/Source/WebKit2/Platform/CoreIPC/ArgumentEncoder.cpp @@ -97,49 +97,49 @@ void ArgumentEncoder::encodeBytes(const uint8_t* bytes, size_t size) void ArgumentEncoder::encodeBool(bool n) { - uint8_t* buffer = grow(__alignof(n), sizeof(n)); + uint8_t* buffer = grow(sizeof(n), sizeof(n)); *reinterpret_cast<bool*>(buffer) = n; } void ArgumentEncoder::encodeUInt32(uint32_t n) { - uint8_t* buffer = grow(__alignof(n), sizeof(n)); + uint8_t* buffer = grow(sizeof(n), sizeof(n)); *reinterpret_cast<uint32_t*>(buffer) = n; } void ArgumentEncoder::encodeUInt64(uint64_t n) { - uint8_t* buffer = grow(__alignof(n), sizeof(n)); + uint8_t* buffer = grow(sizeof(n), sizeof(n)); *reinterpret_cast<uint64_t*>(buffer) = n; } void ArgumentEncoder::encodeInt32(int32_t n) { - uint8_t* buffer = grow(__alignof(n), sizeof(n)); + uint8_t* buffer = grow(sizeof(n), sizeof(n)); *reinterpret_cast<int32_t*>(buffer) = n; } void ArgumentEncoder::encodeInt64(int64_t n) { - uint8_t* buffer = grow(__alignof(n), sizeof(n)); + uint8_t* buffer = grow(sizeof(n), sizeof(n)); *reinterpret_cast<int64_t*>(buffer) = n; } void ArgumentEncoder::encodeFloat(float n) { - uint8_t* buffer = grow(__alignof(n), sizeof(n)); + uint8_t* buffer = grow(sizeof(n), sizeof(n)); *reinterpret_cast<float*>(buffer) = n; } void ArgumentEncoder::encodeDouble(double n) { - uint8_t* buffer = grow(__alignof(n), sizeof(n)); + uint8_t* buffer = grow(sizeof(n), sizeof(n)); *reinterpret_cast<double*>(buffer) = n; } |