fix MS Windows/64bit related warnings

This commit is contained in:
Karel Miko 2017-07-14 19:59:03 +02:00
parent aa0f396c0c
commit 909b4954a9
3 changed files with 4 additions and 4 deletions

View File

@ -919,7 +919,7 @@ static void time_dh(void)
dh_free(&key); dh_free(&key);
} }
t2 >>= 4; t2 >>= 4;
fprintf(stderr, "DH-%4lu make_key took %15llu cycles\n", x*8, t2); fprintf(stderr, "DH-%4lu make_key took %15"PRI64"u cycles\n", x*8, t2);
} }
} }
#else #else

View File

@ -30,7 +30,7 @@
#define LTC_MILLER_RABIN_REPS 35 #define LTC_MILLER_RABIN_REPS 35
#endif #endif
int radix_to_bin(const void *in, int radix, void *out, size_t* len); int radix_to_bin(const void *in, int radix, void *out, unsigned long *len);
/** math descriptor */ /** math descriptor */
typedef struct { typedef struct {

View File

@ -31,9 +31,9 @@
@return CRYPT_OK on success. @return CRYPT_OK on success.
*/ */
int radix_to_bin(const void *in, int radix, void *out, size_t* len) int radix_to_bin(const void *in, int radix, void *out, unsigned long *len)
{ {
size_t l; unsigned long l;
void* mpi; void* mpi;
int err; int err;