On Saturday, 4 de December de 2010 12:00:55 Thiago Macieira wrote:
> On Saturday, 4 de December de 2010 01:29:13 Thomas Lübking wrote:
> > Am Saturday 04 December 2010 schrieb Michael Pyne:
> > > Hmm, this is what I'd call an "answer by accident" at work. (unsigned)0
> > > is
> > 
> > Sorry for hooking in with a semi-OT sidequestion:
> >     Is "0u" gcc specific then?
> 
> No.
> 
> 0u is ISO C standard.
> 
> Also, a literal integer is automatically converted to the right type if the
> size fits. So 0 is a valid unsigned integer, but 128 isn't a valid uchar.

Interestingly, "false" is 0, so false automatically and without warnings can 
be converted to any integer. And pointer...

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Senior Product Manager - Nokia, Qt Development Frameworks
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to