Eddie Edwards wrote: > When compiling the Solaris AVL and zfs DMU modules on Windows I get many > warnings where a uintptr_t is cast to an int, and vice versa. The actual > cases seem benign (e.g. AVL is doing unitptr_t & 1 -> int, which is OK) but > I'm worried there might be some real issues. > > Just for my sanity, is "int" 32-bits wide on 64-bit Solaris as expected (i.e. > long >= int >= short >= char)?
Besides what the other have replied, you can always drop into mdb and use the ::sizeof dcmd. For example: > ::sizeof int sizeof (int) = 4 > ::sizeof long sizeof (long) = 8 > ::sizeof uintptr_t sizeof (uintptr_t) = 8 Rafael _______________________________________________ opensolaris-code mailing list opensolaris-code@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/opensolaris-code