]> gcc.gnu.org Git - gcc.git/commitdiff
(check_for_full_enumeration_handling): Cast malloc result
authorJim Wilson <wilson@gcc.gnu.org>
Fri, 9 Sep 1994 20:32:17 +0000 (13:32 -0700)
committerJim Wilson <wilson@gcc.gnu.org>
Fri, 9 Sep 1994 20:32:17 +0000 (13:32 -0700)
to `unsigned char *' not `char *'.

From-SVN: r8059

gcc/stmt.c

index 0586f11cf1d80e677ea320ea829147797bd89240..814cec7db5d84124706eff500915ced51c881920 100644 (file)
@@ -4313,7 +4313,7 @@ check_for_full_enumeration_handling (type)
 
   if (size > 0 && size < 600000
       /* We deliberately use malloc here - not xmalloc. */
-      && (cases_seen = (char*) malloc (bytes_needed)) != NULL)
+      && (cases_seen = (unsigned char *) malloc (bytes_needed)) != NULL)
     {
       long i;
       tree v = TYPE_VALUES (type);
This page took 0.100532 seconds and 5 git commands to generate.