Mercurial > hg > octave-lyh > gnulib-hg
changeset 4300:e6877ea7c8a8
(widen): Cast alloca return value to proper type.
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Fri, 11 Apr 2003 15:00:23 +0000 |
parents | 4bed74364766 |
children | a4c8ad50ac3a |
files | lib/strftime.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/strftime.c +++ b/lib/strftime.c @@ -302,7 +302,7 @@ const char *__s = os; \ memset (&__st, '\0', sizeof (__st)); \ l = __mbsrtowcs_l (NULL, &__s, 0, &__st, loc); \ - ws = alloca ((l + 1) * sizeof (wchar_t)); \ + ws = (wchar_t *) alloca ((l + 1) * sizeof (wchar_t)); \ (void) __mbsrtowcs_l (ws, &__s, l, &__st, loc); \ } #endif