Commit ad03007a by Jim Wilson

(check_for_full_enumeration_handling): Cast malloc result

to `unsigned char *' not `char *'.

From-SVN: r8059
parent 0852bc0c
...@@ -4313,7 +4313,7 @@ check_for_full_enumeration_handling (type) ...@@ -4313,7 +4313,7 @@ check_for_full_enumeration_handling (type)
if (size > 0 && size < 600000 if (size > 0 && size < 600000
/* We deliberately use malloc here - not xmalloc. */ /* We deliberately use malloc here - not xmalloc. */
&& (cases_seen = (char*) malloc (bytes_needed)) != NULL) && (cases_seen = (unsigned char *) malloc (bytes_needed)) != NULL)
{ {
long i; long i;
tree v = TYPE_VALUES (type); tree v = TYPE_VALUES (type);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment