projects
/
idzebra-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
16f95c5
)
Fix commit (flat shadow). Bug 131
author
Adam Dickmeiss
<adam@indexdata.dk>
Mon, 13 Sep 2004 08:43:28 +0000
(08:43 +0000)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Mon, 13 Sep 2004 08:43:28 +0000
(08:43 +0000)
bfile/commit.c
patch
|
blob
|
history
diff --git
a/bfile/commit.c
b/bfile/commit.c
index
94c31c1
..
9182537
100644
(file)
--- 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
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++)
{
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)
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);
}
" (" 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])
{
{
if (fp[i])
{