summaryrefslogtreecommitdiff
path: root/AK
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-05-21 16:14:02 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-05-21 16:14:02 +0200
commita8313ae0a3a9598fba95c126336dc6729bb22304 (patch)
tree369d99d218571e8c168476df3e66caf83c7a646b /AK
parente383bc6fd8a108017874e5b402874397905e6a7e (diff)
downloadserenity-a8313ae0a3a9598fba95c126336dc6729bb22304.zip
AK: Always inline convert_between_host_and_network<T>.
Diffstat (limited to 'AK')
-rw-r--r--AK/NetworkOrdered.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/AK/NetworkOrdered.h b/AK/NetworkOrdered.h
index b5dc404103..22805bdf50 100644
--- a/AK/NetworkOrdered.h
+++ b/AK/NetworkOrdered.h
@@ -3,7 +3,7 @@
#include <AK/Types.h>
template<typename T>
-T convert_between_host_and_network(T host_value)
+[[gnu::always_inline]] inline T convert_between_host_and_network(T host_value)
{
if constexpr (sizeof(T) == 4) {
auto* s = (byte*)&host_value;