23 lines
734 B
Diff
23 lines
734 B
Diff
From 087ff50c441b8c819f1ede0f7b322daa227b2137 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Bj=C3=B6rn=20Esser?= <besser82@fedoraproject.org>
|
|
Date: Sun, 13 Jun 2021 12:36:42 +0200
|
|
Subject: [PATCH] test/des-obsolete_r.c: Fix Werror=conversion.
|
|
|
|
---
|
|
test/des-obsolete_r.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/test/des-obsolete_r.c b/test/des-obsolete_r.c
|
|
index 6113d3f..cbdfb43 100644
|
|
--- a/test/des-obsolete_r.c
|
|
+++ b/test/des-obsolete_r.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);
|
|
}
|
|
}
|
|
|