QDBM and transactions

Matthias Andree matthias.andree at gmx.de
Mon Nov 1 11:18:11 CET 2004


Stefan Bellon <sbellon at sbellon.de> writes:

>    Irrespective of the choice made [whether char is signed or unsigned],
>    char is a separate type from the other two and is not compatible with
>    either.

> So, if you want aptr and bptr to be of type (unsigned char *) and
> aptrin and bptrin are of type (char *), then you _have_ to cast them:

Right.

>
>     const unsigned char *aptr = (unsigned char *) aptrin;
>     const unsigned char *bptr = (unsigned char *) bptrin;

The cast would have to be unsigned const char * so as to avoid a
qualifier removal warning. Fixed now in CVS.

-- 
Matthias Andree



More information about the bogofilter-dev mailing list