fix WIN32 warnings
[openssl.git] / crypto / x509v3 / v3_scts.c
index c6ef0dc901ad948d78fda0c349e325a0398d2cc4..32548007d8b68033a00a7dfdebf3617fd3901379 100644 (file)
@@ -102,7 +102,7 @@ static void timestamp_print(BIO *out, BN_ULLONG timestamp)
        char genstr[20];
        gen = ASN1_GENERALIZEDTIME_new();
        ASN1_GENERALIZEDTIME_adj(gen, (time_t)0,
-                                       timestamp / 86400000,
+                                       (int)(timestamp / 86400000),
                                        (timestamp % 86400000) / 1000);
        /* Note GeneralizedTime from ASN1_GENERALIZETIME_adj is always 15
         * characters long with a final Z. Update it with fractional seconds.