From c78b7265bd1ee374a5e515d79448d0e3452b5ede Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Mon, 5 Jul 2010 18:32:03 +0000 Subject: Fixups for warnings on Windows (esp 64bit). --- hash.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'hash.c') diff --git a/hash.c b/hash.c index 7f9530d..a4df1f6 100644 --- a/hash.c +++ b/hash.c @@ -46,8 +46,8 @@ hash_init (struct hash_table *ht, unsigned long size, ht->ht_vec = (void**) CALLOC (struct token *, ht->ht_size); if (ht->ht_vec == 0) { - fprintf (stderr, _("can't allocate %ld bytes for hash table: memory exhausted"), - ht->ht_size * sizeof(struct token *)); + fprintf (stderr, _("can't allocate %lu bytes for hash table: memory exhausted"), + ht->ht_size * (unsigned long) sizeof (struct token *)); exit (1); } -- cgit v1.2.3