mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-20 11:36:10 +00:00
LibIPC: Remove IPC::Encoder overloads for size_t
Clients of this code should use explicitly-sized types instead.
This commit is contained in:
parent
d264e8fcc5
commit
6d1740e4be
Notes:
sideshowbarker
2024-07-19 09:35:44 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/6d1740e4be0
1 changed files with 0 additions and 20 deletions
|
@ -118,26 +118,6 @@ public:
|
|||
return *this;
|
||||
}
|
||||
|
||||
Encoder& operator<<(size_t value)
|
||||
{
|
||||
if constexpr (sizeof(size_t) == 4)
|
||||
return *this << (u32)value;
|
||||
else if constexpr (sizeof(size_t) == 8)
|
||||
return *this << (u64)value;
|
||||
ASSERT_NOT_REACHED();
|
||||
}
|
||||
|
||||
#ifndef __i386__
|
||||
Encoder& operator<<(ssize_t value)
|
||||
{
|
||||
if constexpr (sizeof(ssize_t) == 4)
|
||||
return *this << (i32)value;
|
||||
else if constexpr (sizeof(ssize_t) == 8)
|
||||
return *this << (i64)value;
|
||||
ASSERT_NOT_REACHED();
|
||||
}
|
||||
#endif
|
||||
|
||||
Encoder& operator<<(float value)
|
||||
{
|
||||
union bits {
|
||||
|
|
Loading…
Add table
Reference in a new issue