]> sourceware.org Git - lvm2.git/commitdiff
gcc: keep unsigned arithmetic
authorZdenek Kabelac <zkabelac@redhat.com>
Fri, 28 Aug 2020 17:55:01 +0000 (19:55 +0200)
committerZdenek Kabelac <zkabelac@redhat.com>
Fri, 28 Aug 2020 19:43:02 +0000 (21:43 +0200)
Avoid conversion to int.

lib/device/bcache.c

index 7e7e1854203b2ccaa94d561cefa8da78740e596d..03cd4be875ac3d0fb19e62f774b50cd41a4a61f4 100644 (file)
@@ -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)
This page took 0.033231 seconds and 5 git commands to generate.