On Fri, 2007-07-13 at 17:07 -0700, Doug Baskins wrote:
> Mike:
> 
> I just tried it and found the same thing.  The problem is (apparently)
> g++ does not
> allow "casts" except to the value 0.  

You mean *from* the value 0.

>  Furthermore, I do not know if there
> is a way to cast (-1) or (~0UL) to a void* type.  

If void* and int are the same size it is permitted,
but the cast must be explicit.

Judy breaks strict ISO C99 aliasing rules in several places --
I have ignored this. It does matter .. my box is 64 bit,
int isn't long enough to hold a pointer.

you cannot cast

        int* <--> char*

for example. If you want to do that you must go *via* a void*.


-- 
John Skaller <skaller at users dot sf dot net>
Felix, successor to C++: http://felix.sf.net

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Judy-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/judy-devel

Reply via email to