Message333887
| Author | serhiy.storchaka |
|---|---|
| Recipients | David.Edelsohn, cstratak, fweimer, mark.dickinson, serhiy.storchaka, skrah, vstinner |
| Date | 2019-01-17.16:31:36 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1547742697.04.0.900588386776.issue35752@roundup.psfhosted.org> |
| In-reply-to |
| Content | |
|---|---|
Would it help if define PACK_SINGLE as below?
#define PACK_SINGLE(ptr, src, type) \
do { \
union { \
type value; \
unsigned char raw[sizeof(type)]; \
} x; \
x.value = (type)src; \
memcpy(ptr, x.raw, sizeof(type)); \
} while (0) |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2019-01-17 16:31:38 | serhiy.storchaka | set | recipients: + serhiy.storchaka, mark.dickinson, vstinner, skrah, fweimer, David.Edelsohn, cstratak |
| 2019-01-17 16:31:37 | serhiy.storchaka | set | messageid: <1547742697.04.0.900588386776.issue35752@roundup.psfhosted.org> |
| 2019-01-17 16:31:37 | serhiy.storchaka | link | issue35752 messages |
| 2019-01-17 16:31:36 | serhiy.storchaka | create | |