diff options
Diffstat (limited to 'Userland/Libraries/LibIPC/Decoder.cpp')
-rw-r--r-- | Userland/Libraries/LibIPC/Decoder.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/Userland/Libraries/LibIPC/Decoder.cpp b/Userland/Libraries/LibIPC/Decoder.cpp index 977695656b..edc0ea38f3 100644 --- a/Userland/Libraries/LibIPC/Decoder.cpp +++ b/Userland/Libraries/LibIPC/Decoder.cpp @@ -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(); |