summaryrefslogtreecommitdiffstats
path: root/Source/WebKit2/Platform/CoreIPC/ArgumentEncoder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebKit2/Platform/CoreIPC/ArgumentEncoder.cpp')
-rw-r--r--Source/WebKit2/Platform/CoreIPC/ArgumentEncoder.cpp14
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;
}