$NetBSD$

--- src/maildir.c~	2004-08-13 07:18:22.000000000 -0400
+++ src/maildir.c	2008-08-31 15:32:34.000000000 -0400
@@ -347,7 +347,7 @@ reset_array (struct dirent **list, int c
 
         for (i = 0; i < count; i++){
                 htable_insert (file_table, list[i]->d_name,
-                               (void *) (i + base));
+                               (void *)(intptr_t) (i + base));
         }
 }
 
@@ -369,7 +369,7 @@ is_in_array (mail_t *mail)
         if (entry == NULL)
                 return 0;
 
-        index = (int) entry->content;
+        index = (int)(intptr_t) entry->content;
         bitarray_set (common_messages, index);
         return 1;
 }
