mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-19 03:33:43 +03:00
(widen): Cast alloca return value to proper type.
This commit is contained in:
1 parent
206ea8eee6
commit
06fc494da3
1 file changed
+1
-1
+1
-1
@@ -302,7 +302,7 @@ static const CHAR_T zeroes[16] = /* "0000000000000000" */
|
||||
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
|
||||
|
||||
Reference in new issue
Block a user