projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0852bc0
)
(check_for_full_enumeration_handling): Cast malloc result
author
Jim Wilson
<wilson@gcc.gnu.org>
Fri, 9 Sep 1994 20:32:17 +0000
(13:32 -0700)
committer
Jim 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
patch
|
blob
|
history
diff --git
a/gcc/stmt.c
b/gcc/stmt.c
index 0586f11cf1d80e677ea320ea829147797bd89240..814cec7db5d84124706eff500915ced51c881920 100644
(file)
--- 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);