Fix warning.
authorBen Laurie <ben@openssl.org>
Tue, 28 Jun 2005 12:41:35 +0000 (12:41 +0000)
committerBen Laurie <ben@openssl.org>
Tue, 28 Jun 2005 12:41:35 +0000 (12:41 +0000)
crypto/pqueue/pq_compat.h
crypto/pqueue/pqueue.c

index 653845353d1bbacf0256e7286ca0e8837d65e65b..e7c46d5aa1293489a1f08e180ac5586aa3002006 100644 (file)
 
 #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
index e3eb836d45246f50da67373ed4535ad9b038740a..1d6995236203e62af586e075c8975c1a5630b93f 100644 (file)
@@ -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;
                }
        }