HomeFreeBSD

[nvmecontrol] Fix type signedness warning-to-error on gcc-6.4

Description

[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

(cherry picked from commit 44c52406ced4cbba704f9bec588a8238d5a5ef32)

Details

Provenance
adrianAuthored on Nov 17 2020, 5:12 PM
rlibbyCommitted on Dec 29 2020, 11:04 PM
Reviewer
imp
Differential Revision
D26791: [nvmecontrol] Fix type signedness warning-to-error on gcc-6.4
Parents
rG0286ee71041c: [libnetmap] Fix 32 bit compilation under gcc-6.4
Branches
Unknown
Tags
Unknown