Mercurial > hg > octave-lyh > gnulib-hg
changeset 4751:bb3251e48cf2
(error_tail): Don't cast alloca to (void *); it's already (void *).
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Sat, 27 Sep 2003 14:30:57 +0000 |
parents | 0c61e7103dcb |
children | d0f300fb7b8b |
files | lib/error.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/error.c +++ b/lib/error.c @@ -148,7 +148,7 @@ size_t len = strlen (message) + 1; const wchar_t *wmessage = L"out of memory"; wchar_t *wbuf = (len < ALLOCA_LIMIT - ? (void *) alloca (len * sizeof *wbuf) + ? alloca (len * sizeof *wbuf) : len <= SIZE_MAX / sizeof *wbuf ? malloc (len * sizeof *wbuf) : NULL);