From: Robbie Harwood Date: Thu, 6 Apr 2017 19:45:57 +0000 (-0400) Subject: Fix types for t_fortuna.c X-Git-Tag: krb5-1.16-beta1~97 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e6502586d5714e0d61ae190309843aa6637a84ca;p=thirdparty%2Fkrb5.git 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. --- diff --git a/src/lib/crypto/krb/t_fortuna.c b/src/lib/crypto/krb/t_fortuna.c index 4f25bee62c..508ffcf915 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;