diff options
Diffstat (limited to 'tests/reallocarray.c')
-rw-r--r-- | tests/reallocarray.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/reallocarray.c b/tests/reallocarray.c index bc4cba4b..70c1b478 100644 --- a/tests/reallocarray.c +++ b/tests/reallocarray.c @@ -19,16 +19,15 @@ #include <config.h> +#include <stdckdint.h> #include <stdlib.h> #include <errno.h> -#include "intprops.h" - void * reallocarray (void *ptr, size_t nmemb, size_t size) { size_t nbytes; - if (INT_MULTIPLY_WRAPV (nmemb, size, &nbytes)) + if (ckd_mul (&nbytes, nmemb, size)) { errno = ENOMEM; return NULL; |