From b0afb8fe0ff1d87165af9df61501197a06240dda Mon Sep 17 00:00:00 2001 From: Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> Date: Sun, 28 Dec 2025 12:13:40 +0100 Subject: Sync with Gnulib stable-202507 code (a8ac9f9ce5) --- gl/malloca.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gl/malloca.c') diff --git a/gl/malloca.c b/gl/malloca.c index e75c72df..4bce9a3d 100644 --- a/gl/malloca.c +++ b/gl/malloca.c @@ -1,5 +1,5 @@ /* Safe automatic memory allocation. - Copyright (C) 2003, 2006-2007, 2009-2024 Free Software Foundation, Inc. + Copyright (C) 2003, 2006-2007, 2009-2025 Free Software Foundation, Inc. Written by Bruno Haible , 2003, 2018. This file is free software: you can redistribute it and/or modify @@ -93,7 +93,7 @@ mmalloca (size_t n) /* Out of memory. */ return NULL; #else -# if !MALLOC_0_IS_NONNULL +# if !HAVE_MALLOC_0_NONNULL if (n == 0) n = 1; # endif @@ -118,7 +118,7 @@ freea (void *p) char *cp = p; small_t *sp = p; # if defined __CHERI_PURE_CAPABILITY__ - void *mem = sp[-1]; + void *mem = (void *) sp[-1]; # else void *mem = cp - sp[-1]; # endif -- cgit v1.2.3-74-g34f1