aboutsummaryrefslogtreecommitdiff
path: root/gcc/stmt.c
diff options
context:
space:
mode:
authorJim Wilson <wilson@gcc.gnu.org>1994-09-09 13:32:17 -0700
committerJim Wilson <wilson@gcc.gnu.org>1994-09-09 13:32:17 -0700
commitad03007a2b910916428de912e9162272e25aa617 (patch)
treeb2585636ca4066796d5ce948f13aeeaefe5e29ab /gcc/stmt.c
parent0852bc0c5abab5aeb01ecb0799918160f63776f1 (diff)
downloadgcc-ad03007a2b910916428de912e9162272e25aa617.zip
gcc-ad03007a2b910916428de912e9162272e25aa617.tar.gz
gcc-ad03007a2b910916428de912e9162272e25aa617.tar.bz2
(check_for_full_enumeration_handling): Cast malloc result
to `unsigned char *' not `char *'. From-SVN: r8059
Diffstat (limited to 'gcc/stmt.c')
-rw-r--r--gcc/stmt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/stmt.c b/gcc/stmt.c
index 0586f11..814cec7 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);