diff options
author | Brendan Kehoe <brendan@gcc.gnu.org> | 1997-10-14 16:45:22 -0400 |
---|---|---|
committer | Brendan Kehoe <brendan@gcc.gnu.org> | 1997-10-14 16:45:22 -0400 |
commit | 6640eba99bb8bec461818bb21ef17aec5bee5252 (patch) | |
tree | 9d4ef782dc7ddf544282d9cdfd38a616e12555b9 /gcc | |
parent | 1f479842ab6f6cb9ae412a2687454bb59380eec0 (diff) | |
download | gcc-6640eba99bb8bec461818bb21ef17aec5bee5252.zip gcc-6640eba99bb8bec461818bb21ef17aec5bee5252.tar.gz gcc-6640eba99bb8bec461818bb21ef17aec5bee5252.tar.bz2 |
fix two typos
From-SVN: r15906
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/cp/init.c | 2 | ||||
-rw-r--r-- | gcc/cp/typeck.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cp/init.c b/gcc/cp/init.c index 985fae8..7332c7b 100644 --- a/gcc/cp/init.c +++ b/gcc/cp/init.c @@ -2131,7 +2131,7 @@ resolve_offset_ref (exp) member = cp_convert (ptrdiff_type_node, build_unary_op (ADDR_EXPR, member, 0)); - /* Pointer to data mebers are offset by one, so that a null + /* Pointer to data members are offset by one, so that a null pointer with a real value of 0 is distinguishable from an offset of the first member of a structure. */ member = build_binary_op (MINUS_EXPR, member, diff --git a/gcc/cp/typeck.c b/gcc/cp/typeck.c index a97dbbb..d5d4381 100644 --- a/gcc/cp/typeck.c +++ b/gcc/cp/typeck.c @@ -4660,7 +4660,7 @@ unary_complex_lvalue (code, arg) DECL_FIELD_BITPOS (t), size_int (BITS_PER_UNIT))); - /* We offset all pointer to data memebers by 1 so that we can + /* We offset all pointer to data members by 1 so that we can distinguish between a null pointer to data member and the first data member of a structure. */ offset = size_binop (PLUS_EXPR, offset, size_int (1)); |