]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
[nvmecontrol] Fix type signedness warning-to-error on gcc-6.4
authoradrian <adrian@FreeBSD.org>
Tue, 17 Nov 2020 17:12:28 +0000 (17:12 +0000)
committeradrian <adrian@FreeBSD.org>
Tue, 17 Nov 2020 17:12:28 +0000 (17:12 +0000)
commit9c8ce210a540620b36c64f1df53b23e12ba05f99
treebe7a96a442d9bd582a827f67a5ad9cdce2793d34
parentaf7548ef284f53e494220414d1a8cd366e36c2d4
[nvmecontrol] Fix type signedness warning-to-error on gcc-6.4

This fixes a type signedness comparison warning-to-error on
gcc-6.4. The ternary operation casts it right but the actual
assignment doesn't.

Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D26791
sbin/nvmecontrol/firmware.c