From 53a9538330c9b956d3922e106d025367b8594937 Mon Sep 17 00:00:00 2001 From: glebius Date: Wed, 22 Jan 2014 09:22:39 +0000 Subject: [PATCH] Merge 260225: Fix circular math macro. PR: 146082 git-svn-id: svn://svn.freebsd.org/base/stable/10@261009 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- sys/netgraph/ng_l2tp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/netgraph/ng_l2tp.c b/sys/netgraph/ng_l2tp.c index bd98e6ce3..85cd6c3e3 100644 --- a/sys/netgraph/ng_l2tp.c +++ b/sys/netgraph/ng_l2tp.c @@ -98,7 +98,7 @@ static MALLOC_DEFINE(M_NETGRAPH_L2TP, "netgraph_l2tp", "netgraph l2tp node"); #define L2TP_ENABLE_DSEQ 1 /* enable data seq # */ /* Compare sequence numbers using circular math */ -#define L2TP_SEQ_DIFF(x, y) ((int)((int16_t)(x) - (int16_t)(y))) +#define L2TP_SEQ_DIFF(x, y) ((int16_t)((x) - (y))) #define SESSHASHSIZE 0x0020 #define SESSHASH(x) (((x) ^ ((x) >> 8)) & (SESSHASHSIZE - 1)) -- 2.45.0