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
502d58a6
Commit
502d58a6
authored
Mar 04, 1993
by
Steve Chamberlain
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(convert_to_pointer): Fix typo comparing size of integer and pointers.
From-SVN: r3651
parent
ab8ab9d0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
+3
-1
gcc/convert.c
+3
-1
No files found.
gcc/convert.c
View file @
502d58a6
...
...
@@ -56,7 +56,9 @@ convert_to_pointer (type, expr)
if
(
type_precision
(
intype
)
==
POINTER_SIZE
)
return
build1
(
CONVERT_EXPR
,
type
,
expr
);
expr
=
convert
(
type_for_size
(
POINTER_SIZE
,
0
),
expr
);
if
(
TYPE_MODE
(
TREE_TYPE
(
expr
))
!=
TYPE_MODE
(
type
))
/* Modes may be different but sizes should be the same. */
if
(
GET_MODE_SIZE
(
TYPE_MODE
(
TREE_TYPE
(
expr
)))
!=
GET_MODE_SIZE
(
TYPE_MODE
(
type
)))
/* There is supposed to be some integral type
that is the same width as a pointer. */
abort
();
...
...
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