From 25f2b7e622926973f1d3573be2ea0d2d04256e4b Mon Sep 17 00:00:00 2001 From: tb <> Date: Fri, 14 Apr 2023 14:14:39 +0000 Subject: Cast the uint64_t SCT timestamps to (unsigned long long) for printing. What a wonderful choice between this and that PRI ugliness... --- src/regress/lib/libcrypto/ct/cttest.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/regress/lib/libcrypto/ct/cttest.c b/src/regress/lib/libcrypto/ct/cttest.c index a0c75560ef..dd7b814109 100644 --- a/src/regress/lib/libcrypto/ct/cttest.c +++ b/src/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) { -- cgit v1.2.3-55-g6feb