* g++ cast uint32_t to long unsigned int?
@ 2010-04-28 13:27 lee
2010-04-28 13:58 ` John (Eljay) Love-Jensen
2010-04-28 14:08 ` Andrew Haley
0 siblings, 2 replies; 3+ messages in thread
From: lee @ 2010-04-28 13:27 UTC (permalink / raw)
To: gcc-help
Can this be done!
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: g++ cast uint32_t to long unsigned int?
2010-04-28 13:27 g++ cast uint32_t to long unsigned int? lee
@ 2010-04-28 13:58 ` John (Eljay) Love-Jensen
2010-04-28 14:08 ` Andrew Haley
1 sibling, 0 replies; 3+ messages in thread
From: John (Eljay) Love-Jensen @ 2010-04-28 13:58 UTC (permalink / raw)
To: lcpool, GCC-help
Hi lee,
> Can this be done!
Yes.
int main()
{
typedef unsigned int uint32_t; // may vary by platform
uint32_t u32 = 7;
unsigned long int uli = static_cast<unsigned long int>(u32);
}
--Eljay
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: g++ cast uint32_t to long unsigned int?
2010-04-28 13:27 g++ cast uint32_t to long unsigned int? lee
2010-04-28 13:58 ` John (Eljay) Love-Jensen
@ 2010-04-28 14:08 ` Andrew Haley
1 sibling, 0 replies; 3+ messages in thread
From: Andrew Haley @ 2010-04-28 14:08 UTC (permalink / raw)
To: lcpool; +Cc: lee, gcc-help
On 04/28/2010 10:44 AM, lee wrote:
> Can this be done!
Yes!
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-04-28 11:26 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-28 13:27 g++ cast uint32_t to long unsigned int? lee
2010-04-28 13:58 ` John (Eljay) Love-Jensen
2010-04-28 14:08 ` Andrew Haley
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).