diff options
author | sac <sac@138bc75d-0d04-0410-961f-82ee72b054a4> | 1993-03-04 22:18:45 +0000 |
---|---|---|
committer | sac <sac@138bc75d-0d04-0410-961f-82ee72b054a4> | 1993-03-04 22:18:45 +0000 |
commit | a57ab1e49191b77f54c38c3c0421e8350d9c1ce9 (patch) | |
tree | 87e454e64465f8e06ad03670d594ed841533caa0 /gcc/convert.c | |
parent | 50aad79a407e00d3f0a3367c14801477b2b023f4 (diff) | |
download | gcc-a57ab1e49191b77f54c38c3c0421e8350d9c1ce9.tar.gz |
(convert_to_pointer): Fix typo comparing size of integer and pointers.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@3651 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/convert.c')
-rw-r--r-- | gcc/convert.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/convert.c b/gcc/convert.c index f4e6efa88d5..95bac9c3fec 100644 --- a/gcc/convert.c +++ b/gcc/convert.c @@ -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 (); |