]> git.ipfire.org Git - thirdparty/mdadm.git/commit
mdadm: Forced type conversion to avoid truncation
authorXiao Ni <xni@redhat.com>
Sat, 18 Mar 2017 02:33:45 +0000 (10:33 +0800)
committerJes Sorensen <Jes.Sorensen@gmail.com>
Tue, 28 Mar 2017 17:56:43 +0000 (13:56 -0400)
commit5b97512954e9710fd45ab5778bf679205c35892d
treed7e11e5efe1bca9474e12d6e73b38193df94b210
parent618f4e6d63c8c09d8d4002770e44617f3477f137
mdadm: Forced type conversion to avoid truncation

Gcc reports it needs 19 bytes to right to disk->serial. Because the
type of argument i is int. But the meaning of i is failed disk
number. So it doesn't need to use 19 bytes.  Just add a type
conversion to avoid this building error

Signed-off-by: Xiao Ni <xni@redhat.com>
Signed-off-by: Jes Sorensen <Jes.Sorensen@gmail.com>
super-intel.c