krb5 commit: Fix types for t_fortuna.c
Greg Hudson
ghudson at mit.edu
Fri Apr 14 12:14:36 EDT 2017
https://github.com/krb5/krb5/commit/e6502586d5714e0d61ae190309843aa6637a84ca
commit e6502586d5714e0d61ae190309843aa6637a84ca
Author: Robbie Harwood <rharwood at redhat.com>
Date: Thu Apr 6 15:45:57 2017 -0400
Fix types for t_fortuna.c
clang warns about abs() being used on an unsigned value, although the
code did work in practice due to the implicit conversion from size_t
to int.
src/lib/crypto/krb/t_fortuna.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/lib/crypto/krb/t_fortuna.c b/src/lib/crypto/krb/t_fortuna.c
index 4f25bee..508ffcf 100644
--- a/src/lib/crypto/krb/t_fortuna.c
+++ b/src/lib/crypto/krb/t_fortuna.c
@@ -85,7 +85,7 @@ head_tail_test(struct fortuna_state *st)
{
static unsigned char buffer[1024 * 1024];
unsigned char c;
- size_t i, len = sizeof(buffer);
+ int i, len = sizeof(buffer);
int bit, bits[8] = { 0, 0, 0, 0, 0, 0, 0, 0 };
double res;
More information about the cvs-krb5
mailing list