summaryrefslogtreecommitdiffstats
path: root/gl/malloca.c
diff options
context:
space:
mode:
Diffstat (limited to 'gl/malloca.c')
-rw-r--r--gl/malloca.c6
1 files changed, 3 insertions, 3 deletions
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 @@
1/* Safe automatic memory allocation. 1/* Safe automatic memory allocation.
2 Copyright (C) 2003, 2006-2007, 2009-2024 Free Software Foundation, Inc. 2 Copyright (C) 2003, 2006-2007, 2009-2025 Free Software Foundation, Inc.
3 Written by Bruno Haible <bruno@clisp.org>, 2003, 2018. 3 Written by Bruno Haible <bruno@clisp.org>, 2003, 2018.
4 4
5 This file is free software: you can redistribute it and/or modify 5 This file is free software: you can redistribute it and/or modify
@@ -93,7 +93,7 @@ mmalloca (size_t n)
93 /* Out of memory. */ 93 /* Out of memory. */
94 return NULL; 94 return NULL;
95#else 95#else
96# if !MALLOC_0_IS_NONNULL 96# if !HAVE_MALLOC_0_NONNULL
97 if (n == 0) 97 if (n == 0)
98 n = 1; 98 n = 1;
99# endif 99# endif
@@ -118,7 +118,7 @@ freea (void *p)
118 char *cp = p; 118 char *cp = p;
119 small_t *sp = p; 119 small_t *sp = p;
120# if defined __CHERI_PURE_CAPABILITY__ 120# if defined __CHERI_PURE_CAPABILITY__
121 void *mem = sp[-1]; 121 void *mem = (void *) sp[-1];
122# else 122# else
123 void *mem = cp - sp[-1]; 123 void *mem = cp - sp[-1];
124# endif 124# endif