Cast void * to u_int

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Good morning!

I have a line of code as follows (excuse erroneous capitulation, it's my
mailer)

XtPointer client_data; // which is really void *
u_int days = reinterpret_cast<u_int>(client_data);

When I compile with gcc-4.1.2 I get:

error: cast from 'void*' to 'u_int' looses precision

This is the first time I've tried to rebuild this program with gcc-4, it was
previously build with gcc-2.95.2 (really old code but it works and is
simple).

What am I missing here???

Thanks!

-b


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux