aboutsummaryrefslogtreecommitdiff
path: root/malloc/dynarray_resize.c
diff options
context:
space:
mode:
Diffstat (limited to 'malloc/dynarray_resize.c')
-rw-r--r--malloc/dynarray_resize.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/malloc/dynarray_resize.c b/malloc/dynarray_resize.c
index 0bfca1ba4b..0205cf7ab2 100644
--- a/malloc/dynarray_resize.c
+++ b/malloc/dynarray_resize.c
@@ -18,7 +18,6 @@
#include <dynarray.h>
#include <errno.h>
-#include <malloc-internal.h>
#include <stdlib.h>
#include <string.h>
@@ -38,7 +37,7 @@ __libc_dynarray_resize (struct dynarray_header *list, size_t size,
over-allocation here. */
size_t new_size_bytes;
- if (check_mul_overflow_size_t (size, element_size, &new_size_bytes))
+ if (__builtin_mul_overflow (size, element_size, &new_size_bytes))
{
/* Overflow. */
__set_errno (ENOMEM);