Author: tuexen
Date: Wed Feb 17 17:52:46 2016
New Revision: 295708
URL: https://svnweb.freebsd.org/changeset/base/295708
Log:
Address a warning reported by D5245 / PVS.
MFC after: 3 days
Modified:
head/sys/netinet/sctp_output.c
Modified: head/sys/netinet/sctp_output.c
==============================================================================
--- head/sys/netinet/sctp_output.c Wed Feb 17 17:16:02 2016
(r295707)
+++ head/sys/netinet/sctp_output.c Wed Feb 17 17:52:46 2016
(r295708)
@@ -10613,7 +10613,7 @@ sctp_send_sack(struct sctp_tcb *stcb, in
* Clear all bits corresponding to TSNs
* smaller or equal to the cumulative TSN.
*/
- tsn_map &= (~0 << (1 - offset));
+ tsn_map &= (~0U << (1 - offset));
}
selector = &sack_array[tsn_map];
if (mergeable && selector->right_edge) {
@@ -10688,7 +10688,7 @@ sctp_send_sack(struct sctp_tcb *stcb, in
* TSNs smaller or equal to the
* cumulative TSN.
*/
- tsn_map &= (~0 << (1 - offset));
+ tsn_map &= (~0U << (1 - offset));
}
selector = &sack_array[tsn_map];
if (mergeable && selector->right_edge) {
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"