1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 07:37:35 +00:00

LibIPC: Replace u32/u64 value coders with u/ul/ull value coders

We can and should do more cleanups of this kind, but this is a quick fix
to unbreak the 32-bit HackStudio build.
This commit is contained in:
Andreas Kling 2021-11-29 02:18:58 +01:00
parent 16746efcf8
commit ddce053f6c
4 changed files with 42 additions and 9 deletions

View file

@ -37,13 +37,19 @@ ErrorOr<void> Decoder::decode(u16& value)
return m_stream.try_handle_any_error();
}
ErrorOr<void> Decoder::decode(u32& value)
ErrorOr<void> Decoder::decode(unsigned& value)
{
m_stream >> value;
return m_stream.try_handle_any_error();
}
ErrorOr<void> Decoder::decode(u64& value)
ErrorOr<void> Decoder::decode(unsigned long& value)
{
m_stream >> value;
return m_stream.try_handle_any_error();
}
ErrorOr<void> Decoder::decode(unsigned long long& value)
{
m_stream >> value;
return m_stream.try_handle_any_error();