We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 51da8d8 + 560730d commit 21799f1Copy full SHA for 21799f1
1 file changed
ext/msgpack/rmem.c
@@ -65,10 +65,8 @@ void* _msgpack_rmem_alloc2(msgpack_rmem_t* pm)
65
/* allocate new chunk */
66
c = pm->array_last++;
67
68
- /* move to head */
69
- msgpack_rmem_chunk_t tmp = pm->head;
70
- pm->head = *c;
71
- *c = tmp;
+ /* move head to array */
+ *c = pm->head;
72
73
pm->head.mask = 0xffffffff & (~1); /* "& (~1)" means first chunk is already allocated */
74
pm->head.pages = xmalloc(MSGPACK_RMEM_PAGE_SIZE * 32);
0 commit comments