master - gcc: keep unsigned arithmetic
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=ce202c3b1c018a001015fa2ff69a01f06d84a6fa Commit: ce202c3b1c018a001015fa2ff69a01f06d84a6fa Parent: ff4827ffb1dbd568b988716c63634c96eb4c1e15 Author: Zdenek Kabelac <[email protected]> AuthorDate: Fri Aug 28 19:55:01 2020 +0200 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Fri Aug 28 21:43:02 2020 +0200
gcc: keep unsigned arithmetic
Avoid conversion to int.
--- lib/device/bcache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
lib/device/bcache.c +1 -1
@@ -66,7 +66,7 @@ struct cb_set {static struct cb_set *_cb_set_create (unsigned nr) { -int i; +unsigned i;struct cb_set *cbs =malloc (sizeof (*cbs));if (!cbs)