summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibIPC/Decoder.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-11-29 02:18:58 +0100
committerAndreas Kling <kling@serenityos.org>2021-11-29 02:45:27 +0100
commitddce053f6c0312782611d8a2b8aa2263d0ec6a50 (patch)
tree6ec7451e7e749be6deea4fa5413e975fca017221 /Userland/Libraries/LibIPC/Decoder.cpp
parent16746efcf8892027fc21523ec39b0903751c031e (diff)
downloadserenity-ddce053f6c0312782611d8a2b8aa2263d0ec6a50.zip
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.
Diffstat (limited to 'Userland/Libraries/LibIPC/Decoder.cpp')
-rw-r--r--Userland/Libraries/LibIPC/Decoder.cpp10
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();