Potential issue in kshareddatacache.cpp checkin revision 1193778

Thiago Macieira thiago at kde.org
Sat Dec 4 11:22:22 GMT 2010


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20101204/435cc78b/attachment.sig>


More information about the kde-core-devel mailing list