summaryrefslogtreecommitdiffstats
path: root/crypto/pqueue
diff options
context:
space:
mode:
authorBen Laurie <ben@openssl.org>2005-06-28 12:41:35 +0000
committerBen Laurie <ben@openssl.org>2005-06-28 12:41:35 +0000
commit5b9b62a7dbac1a752363df6d61ce115bbb01c1fb (patch)
tree02d60cb9a1314a71055e279ae8e894333752dda2 /crypto/pqueue
parentc0e29e5b01d250f813fa0e985ad8a541fce1828e (diff)
Fix warning.
Diffstat (limited to 'crypto/pqueue')
-rw-r--r--crypto/pqueue/pq_compat.h2
-rw-r--r--crypto/pqueue/pqueue.c2
2 files changed, 3 insertions, 1 deletions
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;
}
}