Skip to contentSkip to conversation

stable-2.02 - gcc: keep unsigned arithmetic

PATCH Zdenek Kabelac 1 participant 1 message Oct 16, 2020

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=90a9a7785e7ad82f6878bb0520989b5b3df00f22
Commit:        90a9a7785e7ad82f6878bb0520989b5b3df00f22
Parent:        94b5aa0aad3173b19c7424996e28dfdc276a34d2
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Fri Aug 28 19:55:01 2020 +0200
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Fri Oct 16 16:02:05 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
index 03779a519..e4e72b6fb 100644
@@ -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)