Skip to content

Commit cccae5d

Browse files
committed
Use correct alignof macro
1 parent b06e491 commit cccae5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libbson/src/bson/memory.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ bson_array_alloc(size_t type_size /* IN */, size_t len /* IN */)
261261
size_t num_bytes = type_size * len;
262262

263263
if (BSON_LIKELY(num_bytes) && BSON_LIKELY(type_size == num_bytes / len)) {
264-
mem = bson_aligned_alloc0(BSON_ALIGN_OF(type_size), num_bytes);
264+
mem = bson_aligned_alloc0(BSON_ALIGNOF(type_size), num_bytes);
265265
}
266266
return mem;
267267
}

0 commit comments

Comments
 (0)