From 90a9a7785e7ad82f6878bb0520989b5b3df00f22 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Fri, 28 Aug 2020 19:55:01 +0200 Subject: [PATCH] gcc: keep unsigned arithmetic Avoid conversion to int. --- lib/device/bcache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/device/bcache.c b/lib/device/bcache.c index 03779a519..e4e72b6fb 100644 --- a/lib/device/bcache.c +++ b/lib/device/bcache.c @@ -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)