* 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:
@@ -52,7 +52,7 @@ icmp_decode(uint32 errorCode, uint8 &type, uint8 &code)
|
|||||||
static inline uint32
|
static inline uint32
|
||||||
icmp_encode(uint8 type, uint8 code)
|
icmp_encode(uint8 type, uint8 code)
|
||||||
{
|
{
|
||||||
return ((uint32)type) << 8 + code;
|
return ((uint32)type << 8) + code;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user