(widen): Cast alloca return value to proper type.
authorJim Meyering <jim@meyering.net>
Fri, 11 Apr 2003 15:00:23 +0000 (15:00 +0000)
committerJim Meyering <jim@meyering.net>
Fri, 11 Apr 2003 15:00:23 +0000 (15:00 +0000)
lib/strftime.c

index c96cabb34c9b51b3cf42a539510221e180025d0d..cf76c1f5e38e147ecb0f42264a1813cacfae7594 100644 (file)
@@ -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