Skip to content

Commit

Permalink
additional typo and terminology fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nlsandler committed Oct 29, 2024
1 parent 2e83cb9 commit 6c87e8d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/chapter_15/valid/initialization/automatic_nested.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down

0 comments on commit 6c87e8d

Please sign in to comment.