]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_malloc/malloc_elem.c
lib: new alignment macros
[dpdk.git] / lib / librte_malloc / malloc_elem.c
index 18433413da5489c05151272e62d38a018949f2c6..0d2fdb6beae84e2dd986d54c0b6039aa07cfa947 100644 (file)
@@ -264,7 +264,7 @@ malloc_elem_resize(struct malloc_elem *elem, size_t size)
        if (elem->size - new_size > MIN_DATA_SIZE + MALLOC_ELEM_OVERHEAD){
                /* now we have a big block together. Lets cut it down a bit, by splitting */
                struct malloc_elem *split_pt = RTE_PTR_ADD(elem, new_size);
-               split_pt = RTE_ALIGN_CEIL(split_pt, CACHE_LINE_SIZE);
+               split_pt = RTE_PTR_ALIGN_CEIL(split_pt, CACHE_LINE_SIZE);
                split_elem(elem, split_pt);
                split_pt->state = ELEM_FREE;
                split_pt->next_free = elem->heap->free_head;