From: Brian McGrew <brian@visionpro.com>
To: <gcc-help@gcc.gnu.org>
Subject: Cast void * to u_int
Date: Thu, 04 Feb 2010 18:28:00 -0000 [thread overview]
Message-ID: <C790515E.17B39%brian@visionpro.com> (raw)
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
next reply other threads:[~2010-02-04 18:26 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-04 18:28 Brian McGrew [this message]
2010-02-04 18:37 ` Adel Abushaev
2010-02-04 18:56 ` Brian McGrew
2010-02-08 0:25 ` Thomas Martitz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=C790515E.17B39%brian@visionpro.com \
--to=brian@visionpro.com \
--cc=gcc-help@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).