* 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
This commit is contained in:
Axel Dörfler 2010-07-21 16:13:51 +00:00
parent facb1eb9ad
commit 68d1b69012

View File

@ -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;
}