Author: arybchik
Date: Wed Dec 26 10:06:14 2018
New Revision: 342498
URL: https://svnweb.freebsd.org/changeset/base/342498

Log:
  MFC r340885
  
  sfxge(4): fix warnings from VS2015 C compiler (C4310)
  
  Fix level 4 warning
  "C4310: cast truncates constant value";
  no functional changes.
  
  Submitted by:   Andrew Lee <alee at solarflare.com>
  Sponsored by:   Solarflare Communications, Inc.
  Differential Revision:  https://reviews.freebsd.org/D18119

Modified:
  stable/10/sys/dev/sfxge/common/efx_bootcfg.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/dev/sfxge/common/efx_bootcfg.c
==============================================================================
--- stable/10/sys/dev/sfxge/common/efx_bootcfg.c        Wed Dec 26 10:05:36 
2018        (r342497)
+++ stable/10/sys/dev/sfxge/common/efx_bootcfg.c        Wed Dec 26 10:06:14 
2018        (r342498)
@@ -359,7 +359,7 @@ efx_bootcfg_read(
        rc = efx_bootcfg_verify(enp, (caddr_t)payload, sector_length,
            &used_bytes);
        if (rc != 0 || used_bytes == 0) {
-               payload[0] = (uint8_t)~DHCP_END;
+               payload[0] = (uint8_t)(~DHCP_END & 0xff);
                payload[1] = DHCP_END;
                used_bytes = 2;
        }
_______________________________________________
svn-src-stable-10@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-stable-10
To unsubscribe, send any mail to "svn-src-stable-10-unsubscr...@freebsd.org"

Reply via email to