From 68d1b690121459da9e1b4a2ef16245d40d76574e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Wed, 21 Jul 2010 16:13:51 +0000 Subject: [PATCH] * Fixed broken decode function. I wonder how that one could have been missed before... git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37660 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/private/net/icmp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/headers/private/net/icmp.h b/headers/private/net/icmp.h index 91dca3c5d5..510ff9ab2a 100644 --- a/headers/private/net/icmp.h +++ b/headers/private/net/icmp.h @@ -52,7 +52,7 @@ icmp_decode(uint32 errorCode, uint8 &type, uint8 &code) static inline uint32 icmp_encode(uint8 type, uint8 code) { - return ((uint32)type) << 8 + code; + return ((uint32)type << 8) + code; }