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.
Details
Details
- compiled on gcc-6.4 amd64
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
sbin/nvmecontrol/firmware.c | ||
---|---|---|
180 ↗ | (On Diff #78247) | I think it would be better to have a new variable that's the right size rather than all the casts. |