>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)? An int is 32 bits, uintptr_t is 64 bits, like any pointer. In the particular case it is true that: long > int > short > char. If you know that the expression is OK, you should at a cast. Casper _______________________________________________ opensolaris-code mailing list opensolaris-code@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/opensolaris-code