From 873d647f0e4265bfdb1dcfd357ae48a989e48401 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Mon, 13 Sep 2004 08:43:28 +0000 Subject: [PATCH] Fix commit (flat shadow). Bug 131 --- bfile/commit.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bfile/commit.c b/bfile/commit.c index 94c31c1..9182537 100644 --- a/bfile/commit.c +++ b/bfile/commit.c @@ -1,4 +1,4 @@ -/* $Id: commit.c,v 1.19 2004-08-06 12:55:01 adam Exp $ +/* $Id: commit.c,v 1.20 2004-09-13 08:43:28 adam Exp $ Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003,2004 Index Data Aps @@ -197,7 +197,7 @@ static void cf_commit_flat (CFile cf) fp = (zint *) xmalloc (HASH_BSIZE); for (hno = cf->head.next_bucket; hno < cf->head.flat_bucket; hno++) { - for (i = 0; i < (int) (HASH_BSIZE/sizeof(int)); i++) + for (i = 0; i < (int) (HASH_BSIZE/sizeof(zint)); i++) fp[i] = 0; if (!mf_read (cf->hash_mf, hno, 0, 0, fp) && hno != cf->head.flat_bucket-1) @@ -206,7 +206,7 @@ static void cf_commit_flat (CFile cf) " (" ZINT_FORMAT "-" ZINT_FORMAT ") commit", hno, cf->head.next_bucket, cf->head.flat_bucket-1); } - for (i = 0; i < (int) (HASH_BSIZE/sizeof(int)); i++) + for (i = 0; i < (int) (HASH_BSIZE/sizeof(zint)); i++) { if (fp[i]) { -- 1.7.10.4