summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjörn Esser <besser82@fedoraproject.org>2021-06-13 12:24:23 +0200
committerBjörn Esser <besser82@fedoraproject.org>2021-06-13 12:41:48 +0200
commitab819b18673ddce6d9ded84e412cff6b26e394fa (patch)
tree92b4eaba9458b50f1517f07147333d3b91bf396c
parent9f39b280c705de2806650c23f0b2bbb5f1319e54 (diff)
downloadlibxcrypt-ab819b18673ddce6d9ded84e412cff6b26e394fa.tar.gz
libxcrypt-ab819b18673ddce6d9ded84e412cff6b26e394fa.tar.bz2
libxcrypt-ab819b18673ddce6d9ded84e412cff6b26e394fa.zip
test/des-obsolete.c: Fix Werror=conversion.
-rw-r--r--test/des-obsolete.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/des-obsolete.c b/test/des-obsolete.c
index 2955c87..2259e81 100644
--- a/test/des-obsolete.c
+++ b/test/des-obsolete.c
@@ -29,7 +29,7 @@ expand (unsigned char ex[64], const unsigned char pk[8])
{
t = pk[i];
for (j = 0; j < 8; j++)
- ex[i*8 + j] = (t & (0x01u << (7 - j))) != 0;
+ ex[i*8 + j] = (unsigned char)((t & (0x01u << (7 - j))) != 0);
}
}