Commit 6640eba9 by Brendan Kehoe

fix two typos

From-SVN: r15906
parent 1f479842
......@@ -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,
......
......@@ -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));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment