Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Dec 2018 15:14:00 +0000 (UTC)
From:      Andrew Rybchenko <arybchik@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r342317 - stable/12/sys/dev/sfxge/common
Message-ID:  <201812211514.wBLFE0rn041756@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: arybchik
Date: Fri Dec 21 15:13:59 2018
New Revision: 342317
URL: https://svnweb.freebsd.org/changeset/base/342317

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/12/sys/dev/sfxge/common/efx_bootcfg.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/dev/sfxge/common/efx_bootcfg.c
==============================================================================
--- stable/12/sys/dev/sfxge/common/efx_bootcfg.c	Fri Dec 21 15:12:58 2018	(r342316)
+++ stable/12/sys/dev/sfxge/common/efx_bootcfg.c	Fri Dec 21 15:13:59 2018	(r342317)
@@ -361,7 +361,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;
 	}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201812211514.wBLFE0rn041756>