From 6c87e8d14a20cb9476bddc8637beb1457e35627c Mon Sep 17 00:00:00 2001 From: Nora Sandler Date: Tue, 29 Oct 2024 11:37:43 -0700 Subject: [PATCH] additional typo and terminology fixes --- .../valid/extra_credit/compound_assign_conversion.c | 4 ++-- tests/chapter_15/valid/initialization/automatic_nested.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/chapter_14/valid/extra_credit/compound_assign_conversion.c b/tests/chapter_14/valid/extra_credit/compound_assign_conversion.c index 3e3e099e..faa37c2e 100644 --- a/tests/chapter_14/valid/extra_credit/compound_assign_conversion.c +++ b/tests/chapter_14/valid/extra_credit/compound_assign_conversion.c @@ -1,4 +1,4 @@ -// Test comound assignment through pointers that require type conversions +// Test compound assignment through pointers that require type conversions int main(void) { // lval is pointer @@ -11,7 +11,7 @@ int main(void) { } int i = -50; int *i_ptr = &i; - // convert *i_ptr to unsigned, perform conversion, then convert back + // convert *i_ptr to unsigned, perform operation, then convert back *i_ptr %= 4294967200U; if (*i_ptr != 46) { return 2; // fail diff --git a/tests/chapter_15/valid/initialization/automatic_nested.c b/tests/chapter_15/valid/initialization/automatic_nested.c index c88afa2c..c40cb1ef 100644 --- a/tests/chapter_15/valid/initialization/automatic_nested.c +++ b/tests/chapter_15/valid/initialization/automatic_nested.c @@ -91,7 +91,7 @@ int test_preserve_stack(void) { /* Initialize with expressions of long type - make sure they're truncated * before being copied into the array. * Also use an array of < 16 bytes so it's not 16-byte aligned, so there are - * eight bytes that include both array elements and other values. + * quadwords that include both array elements and other values. * Also leave last element uninitialized; in assembly, we should set it to * zero without overwriting what follows */