From: Brendan Kehoe Date: Tue, 14 Oct 1997 20:45:22 +0000 (-0400) Subject: fix two typos X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6640eba99bb8bec461818bb21ef17aec5bee5252;p=gcc.git fix two typos From-SVN: r15906 --- diff --git a/gcc/cp/init.c b/gcc/cp/init.c index 985fae8f335..7332c7bb8f9 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 a97dbbb79e7..d5d4381cbd8 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));