mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-16 05:37:18 +03:00
Fix a strict aliasing violation.
This commit is contained in:
parent
a2be4779b1
commit
0ac396a06a
1 changed files with 4 additions and 2 deletions
|
|
@ -53,8 +53,10 @@ thd_sender_start(void *arg)
|
|||
|
||||
for (i = 0; i < NMSGS; i++) {
|
||||
mq_msg_t *msg;
|
||||
assert_d_eq(jet_allocm((void **)&msg, NULL, sizeof(mq_msg_t),
|
||||
0), ALLOCM_SUCCESS, "Unexpected allocm() failure");
|
||||
void *p;
|
||||
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);
|
||||
}
|
||||
return (NULL);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue