X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=dict%2Fdcompact.c;h=88fd6ba88e4899e505929e8de739a25622a64758;hb=9252c3f4231f9f3226326ce1360f055bad48b8d1;hp=6dd41654d48df82ac8a41fbc867b330b4d224393;hpb=a4e93d62564084d6d1b6670d4fe75dd70a6ed139;p=idzebra-moved-to-github.git diff --git a/dict/dcompact.c b/dict/dcompact.c index 6dd4165..88fd6ba 100644 --- a/dict/dcompact.c +++ b/dict/dcompact.c @@ -4,7 +4,10 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: dcompact.c,v $ - * Revision 1.1 1999-03-09 13:07:06 adam + * Revision 1.2 1999-03-09 16:27:49 adam + * More work on SDRKit integration. + * + * Revision 1.1 1999/03/09 13:07:06 adam * Work on dict_compact routine. * */ @@ -26,7 +29,7 @@ int dict_compact (BFiles bfs, const char *from_name, const char *to_name) if (!from) return -1; map = xmalloc ((from->head.last+1) * sizeof(*map)); - for (i = 0; i <= from->head.last; i++) + for (i = 0; i <= (int) (from->head.last); i++) map[i] = -1; to = dict_open (bfs, to_name, 0, 1); if (!to) @@ -34,7 +37,7 @@ int dict_compact (BFiles bfs, const char *from_name, const char *to_name) map[0] = 0; map[1] = DICT_pagesize(from); - for (i = 1; i < from->head.last; i++) + for (i = 1; i < (int) (from->head.last); i++) { void *buf; logf (LOG_LOG, "map[%d] = %d", i, map[i]);