[Tux3] [PATCH] Add check for ileaf dict ordering

Conrad Meyer konrad at tylerc.org
Tue Sep 2 09:47:19 PDT 2008


On Tuesday 02 September 2008 09:36:55 am you wrote:
> On Tue, Sep 2, 2008 at 6:47 AM, Conrad Meyer <konrad at tylerc.org> wrote:
> 
> > diff -r fd5ca07f03dd user/test/ileaf.c
> > --- a/user/test/ileaf.c Tue Sep 02 00:06:45 2008 -0700
> > +++ b/user/test/ileaf.c Tue Sep 02 06:47:17 2008 -0700
> > @@ -124,11 +124,23 @@
> >        return attrs;
> >  }
> >
> > +int isinorder(BTREE, struct ileaf *leaf)
> > +{
> > +       u16 *dict = (void *)leaf + btree->sb->blocksize;
> > +       for (int i = 0, offset = 0, limit; i > -leaf->count; i--, offset =
> > limit)
> 
> 
> My memory might be failing me. Is this correct C standard?

It's C99 IIRC.

Regards,
-- 
Conrad Meyer <konrad at tylerc.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
URL: <http://phunq.net/pipermail/tux3/attachments/20080902/79a9b013/attachment-0001.sig>
-------------- next part --------------
_______________________________________________
Tux3 mailing list
Tux3 at tux3.org
http://tux3.org/cgi-bin/mailman/listinfo/tux3


More information about the Tux3 mailing list