Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
ad03007a
Commit
ad03007a
authored
Sep 09, 1994
by
Jim Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(check_for_full_enumeration_handling): Cast malloc result
to `unsigned char *' not `char *'. From-SVN: r8059
parent
0852bc0c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
+1
-1
gcc/stmt.c
+1
-1
No files found.
gcc/stmt.c
View file @
ad03007a
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment