Commit 7aaabd62 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Fix seqno_minus for negative values.

parent f0d09017
......@@ -47,7 +47,7 @@ seqno_compare(unsigned short s1, unsigned short s2)
int
seqno_minus(unsigned short s1, unsigned short s2)
{
return ((s1 - s2) & 0xFFFF);
return (int)(short)((s1 - s2) & 0xFFFF);
}
unsigned short
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment