summaryrefslogtreecommitdiff
path: root/hash.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2010-07-05 18:32:03 +0000
committerPaul Smith <psmith@gnu.org>2010-07-05 18:32:03 +0000
commitdb7b9886e27a33b68aa5e3736d28458e4cd83a50 (patch)
tree7b46185bfca8c3d2ac28780e359c15c648655bce /hash.c
parentb6c7652b0a44b29918eb623efbf6f0102d4b2397 (diff)
downloadmake-db7b9886e27a33b68aa5e3736d28458e4cd83a50.tar.gz
Fixups for warnings on Windows (esp 64bit).
Diffstat (limited to 'hash.c')
-rw-r--r--hash.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hash.c b/hash.c
index 7f9530dd..a4df1f60 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);
}