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) {
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to