Merge pull request #253 from libtom/pr/rc2-fix-win64

Fix MS Windows/64bit related warnings
This commit is contained in:
karel-m 2017-07-14 20:41:10 +02:00 committed by GitHub
commit ff54ec2f0d
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;