Message186421
> Note that the patch uses type punning through a union
What is the standard and portable way to cast an array of bytes to size_t?
2013/4/9 Charles-François Natali <report@bugs.python.org>:
>
> Charles-François Natali added the comment:
>
> Note that the patch uses type punning through a union: while GCC allows this, it's not allowed by ANSI (although since we're using a char [], it's somewhat a grey area). An aggresive compiler could optimiza the read/write away.
>
> ----------
> nosy: +neologix
>
> _______________________________________
> Python tracker <report@bugs.python.org>
> <http://bugs.python.org/issue16427>
> _______________________________________ |
|
Date |
User |
Action |
Args |
2013-04-09 14:59:40 | vstinner | set | recipients:
+ vstinner, tim.peters, rhettinger, gregory.p.smith, jcea, mark.dickinson, pitrou, christian.heimes, asvetlov, skrah, neologix, python-dev, serhiy.storchaka |
2013-04-09 14:59:40 | vstinner | link | issue16427 messages |
2013-04-09 14:59:40 | vstinner | create | |
|