Date: Fri, 21 Dec 2018 15:15:07 +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: r342318 - stable/12/sys/dev/sfxge/common Message-ID: <201812211515.wBLFF7p3041865@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: arybchik Date: Fri Dec 21 15:15:07 2018 New Revision: 342318 URL: https://svnweb.freebsd.org/changeset/base/342318 Log: MFC r340886 sfxge(4): fix warnings from VS2015 C compiler (C4244) Fix level 4 warning "C4244: '+=': conversion from 'unsigned int' to 'uint16_t', possible loss of data"; no functional changes. Submitted by: Andrew Lee <alee at solarflare.com> Sponsored by: Solarflare Communications, Inc. Differential Revision: https://reviews.freebsd.org/D18120 Modified: stable/12/sys/dev/sfxge/common/efx_vpd.c Directory Properties: stable/12/ (props changed) Modified: stable/12/sys/dev/sfxge/common/efx_vpd.c ============================================================================== --- stable/12/sys/dev/sfxge/common/efx_vpd.c Fri Dec 21 15:13:59 2018 (r342317) +++ stable/12/sys/dev/sfxge/common/efx_vpd.c Fri Dec 21 15:15:07 2018 (r342318) @@ -933,7 +933,7 @@ efx_vpd_hunk_set( } /* Modify tag length (large resource type) */ - taglen += (dest - source); + taglen += (uint16_t)(dest - source); EFX_POPULATE_WORD_1(word, EFX_WORD_0, taglen); data[offset - 2] = EFX_WORD_FIELD(word, EFX_BYTE_0); data[offset - 1] = EFX_WORD_FIELD(word, EFX_BYTE_1);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201812211515.wBLFF7p3041865>