Re: g++ cast uint32_t to long unsigned int?

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

 



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



[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