mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-24 13:53:11 +00:00
Fix a strict aliasing violation.
This commit is contained in:
@@ -53,8 +53,10 @@ thd_sender_start(void *arg)
|
|||||||
|
|
||||||
for (i = 0; i < NMSGS; i++) {
|
for (i = 0; i < NMSGS; i++) {
|
||||||
mq_msg_t *msg;
|
mq_msg_t *msg;
|
||||||
assert_d_eq(jet_allocm((void **)&msg, NULL, sizeof(mq_msg_t),
|
void *p;
|
||||||
0), ALLOCM_SUCCESS, "Unexpected allocm() failure");
|
assert_d_eq(jet_allocm(&p, NULL, sizeof(mq_msg_t), 0),
|
||||||
|
ALLOCM_SUCCESS, "Unexpected allocm() failure");
|
||||||
|
msg = (mq_msg_t *)p;
|
||||||
mq_put(mq, msg);
|
mq_put(mq, msg);
|
||||||
}
|
}
|
||||||
return (NULL);
|
return (NULL);
|
||||||
|
|||||||
Reference in New Issue
Block a user