From: tb Date: Fri, 14 Apr 2023 14:14:39 +0000 (+0000) Subject: Cast the uint64_t SCT timestamps to (unsigned long long) for printing. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=7086b4c167ddb66152d45028bcee95a893464a44;p=openbsd Cast the uint64_t SCT timestamps to (unsigned long long) for printing. What a wonderful choice between this and that PRI ugliness... --- diff --git a/regress/lib/libcrypto/ct/cttest.c b/regress/lib/libcrypto/ct/cttest.c index a0c75560efc..dd7b8141093 100644 --- a/regress/lib/libcrypto/ct/cttest.c +++ b/regress/lib/libcrypto/ct/cttest.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cttest.c,v 1.6 2023/04/14 12:37:20 tb Exp $ */ +/* $OpenBSD: cttest.c,v 1.7 2023/04/14 14:14:39 tb Exp $ */ /* * Copyright (c) 2021 Joel Sing * @@ -225,8 +225,9 @@ ct_compare_test_scts(STACK_OF(SCT) *scts) } if (SCT_get_timestamp(sct) != sdt->timestamp) { fprintf(stderr, "FAIL: SCT %d - got timestamp %llu, " - "want %llu\n", i, SCT_get_timestamp(sct), - sdt->timestamp); + "want %llu\n", i, + (unsigned long long)SCT_get_timestamp(sct), + (unsigned long long)sdt->timestamp); goto failure; } if (SCT_get_signature_nid(sct) != sdt->signature_nid) {