From 9f39b280c705de2806650c23f0b2bbb5f1319e54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Esser?= Date: Sun, 13 Jun 2021 12:05:47 +0200 Subject: [PATCH] lib/crypt-des-obsolete.c: Fix Werror=conversion. --- lib/crypt-des-obsolete.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/crypt-des-obsolete.c b/lib/crypt-des-obsolete.c index 36434d0..a10bb5a 100644 --- a/lib/crypt-des-obsolete.c +++ b/lib/crypt-des-obsolete.c @@ -85,7 +85,7 @@ unpack_bits (char bytev[64], const unsigned char bitv[8]) { c = bitv[i]; for (int j = 0; j < 8; j++) - bytev[i*8 + j] = (c & (0x01 << (7 - j))) != 0; + bytev[i*8 + j] = (char)((c & (0x01 << (7 - j))) != 0); } }