From 5b9b62a7dbac1a752363df6d61ce115bbb01c1fb Mon Sep 17 00:00:00 2001 From: Ben Laurie Date: Tue, 28 Jun 2005 12:41:35 +0000 Subject: [PATCH] Fix warning. --- crypto/pqueue/pq_compat.h | 2 ++ crypto/pqueue/pqueue.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/crypto/pqueue/pq_compat.h b/crypto/pqueue/pq_compat.h index 653845353d..e7c46d5aa1 100644 --- a/crypto/pqueue/pq_compat.h +++ b/crypto/pqueue/pq_compat.h @@ -110,8 +110,10 @@ #if defined(SIXTY_FOUR_BIT) || defined(SIXTY_FOUR_BIT_LONG) #define PQ_64BIT BN_ULONG +#define PQ_64BIT_PRINT "%ld" #elif defined(THIRTY_TWO_BIT) #define PQ_64BIT BN_ULLONG +#define PQ_64BIT_PRINT "%lld" #endif #define PQ_64BIT_CTX void diff --git a/crypto/pqueue/pqueue.c b/crypto/pqueue/pqueue.c index e3eb836d45..1d69952362 100644 --- a/crypto/pqueue/pqueue.c +++ b/crypto/pqueue/pqueue.c @@ -207,7 +207,7 @@ pqueue_print(pqueue_s *pq) while(item != NULL) { - printf("item\t%lld\n", item->priority); + printf("item" PQ_64BIT_PRINT "\n", item->priority); item = item->next; } } -- 2.25.1