From: Jim Wilson Date: Fri, 9 Sep 1994 20:32:17 +0000 (-0700) Subject: (check_for_full_enumeration_handling): Cast malloc result X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ad03007a2b910916428de912e9162272e25aa617;p=gcc.git (check_for_full_enumeration_handling): Cast malloc result to `unsigned char *' not `char *'. From-SVN: r8059 --- diff --git a/gcc/stmt.c b/gcc/stmt.c index 0586f11cf1d..814cec7db5d 100644 --- a/gcc/stmt.c +++ b/gcc/stmt.c @@ -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);