]> git.ipfire.org Git - thirdparty/mdadm.git/commit - super-ddf.c
super-ddf: Fix gcc-8.1 overflow warnings
authorJes Sorensen <jsorensen@fb.com>
Thu, 31 May 2018 20:07:33 +0000 (16:07 -0400)
committerJes Sorensen <jsorensen@fb.com>
Thu, 31 May 2018 20:07:33 +0000 (16:07 -0400)
commit002a5978f015a77ecc48487006b1030f9dbe1394
treed7b471a9fc509fea6a6051968fc55b6c69e147eb
parent4d061b02b61d5e6d4186e0118166fdd40ea8b55f
super-ddf: Fix gcc-8.1 overflow warnings

Cast to types that are big enough to hold the values, but also guarantee
no overflow of the buffer keepts gcc happy.

Signed-off-by: Jes Sorensen <jsorensen@fb.com>
super-ddf.c