[Qt-interest] dereferencing pointer '<anonymous>' does break strict-aliasing rules error
Thiago Macieira
thiago at kde.org
Wed May 11 14:19:04 CEST 2011
On Wednesday, 11 de May de 2011 14:16:35 Anton Chernov wrote:
> int i = 42;
>
> ushort* u = (ushort *)&i;
>
> *u = 43;
Yes, I meant that.
--
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: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110511/51f7530a/attachment.bin
More information about the Qt-interest-old
mailing list