Skip to content

Commit 4ff474f

Browse files
committed
Fix: remove incorrect assert in utils_align_ptr_up_size_down()
Remove incorrect assert in utils_align_ptr_up_size_down(). A pointer is aligned, but a size is only adjusted to the new pointer. The size does not have to be aligned. Signed-off-by: Lukasz Dorau <[email protected]>
1 parent 0ee5bd9 commit 4ff474f

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/utils/utils_common.c

-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ void utils_align_ptr_up_size_down(void **ptr, size_t *size, size_t alignment) {
2525
}
2626

2727
ASSERT(IS_ALIGNED(p, alignment));
28-
ASSERT(IS_ALIGNED(s, alignment));
2928

3029
*ptr = (void *)p;
3130
*size = s;

0 commit comments

Comments
 (0)