Message364027
The memcpy() is NOT a hack and performs exactly the same operation
as casting the pointer and then dereferencing, only in a manner that
avoids unaligned accesses.
On platforms like x86 the memcpy() is optimized to a simple assignment.
Casting the pointer and then dereferencing would also be subject
to the UB warnings.
You are the one who wanted to *introduce* a hack by dereferencing
as char and then cast to _Bool. :-) |
|
Date |
User |
Action |
Args |
2020-03-12 16:32:19 | skrah | set | recipients:
+ skrah, gregory.p.smith, mark.dickinson, vstinner, benjamin.peterson, petr.viktorin, meador.inge, cstratak, ammar2 |
2020-03-12 16:32:19 | skrah | set | messageid: <1584030739.35.0.262165546043.issue39689@roundup.psfhosted.org> |
2020-03-12 16:32:19 | skrah | link | issue39689 messages |
2020-03-12 16:32:19 | skrah | create | |
|