On Wed, Nov 08, 2017 at 08:09:17PM -0800, gsquel...@mozilla.com wrote:
On Thursday, November 9, 2017 at 1:11:20 PM UTC+11, Kris Maglione wrote:
On Wed, Nov 08, 2017 at 06:04:27PM -0800, jww...@mozilla.com wrote:
>Is it always safe and portable to do:
>
>char* p1 = ...;
>uint8_t* p2 =
On Thursday, November 9, 2017 at 1:11:20 PM UTC+11, Kris Maglione wrote:
> On Wed, Nov 08, 2017 at 06:04:27PM -0800, jww...@mozilla.com wrote:
> >Is it always safe and portable to do:
> >
> >char* p1 = ...;
> >uint8_t* p2 = reinterpret_cast(p1);
> >uint8_t u8 = p2[0];
> >
> >without
On Wed, Nov 08, 2017 at 06:04:27PM -0800, jww...@mozilla.com wrote:
Is it always safe and portable to do:
char* p1 = ...;
uint8_t* p2 = reinterpret_cast(p1);
uint8_t u8 = p2[0];
without breaking strict aliasing?
Strict aliasing permits any typed data to be accessed as char*,
so
Is it always safe and portable to do:
char* p1 = ...;
uint8_t* p2 = reinterpret_cast(p1);
uint8_t u8 = p2[0];
without breaking strict aliasing?
___
dev-platform mailing list
dev-platform@lists.mozilla.org
4 matches
Mail list logo