Skip to content

Commit

Permalink
Fix typo I've found while doing chap17
Browse files Browse the repository at this point in the history
  • Loading branch information
hatoo committed Aug 21, 2024
1 parent 7018e06 commit d9ab5a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/chapter_17/valid/void_pointer/common_pointer_type.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ int main(void) {
// note: effective type of this object is unsigned int,
// so we're allowed to access it with an expression of
// the corresponding signed type, int.
// if this object were void_ptr instead of array, this would be udnefined
// if this object were void_ptr instead of array, this would be undefined
int array_element = my_array[1];

if (array_element != 2) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ int main(void) {
}
free(double_buffer);

// allocate a buffer with aligned_alloc, make sure it has the correct alignemnt
// allocate a buffer with aligned_alloc, make sure it has the correct alignment
char_buffer = aligned_alloc(256, 256);
// make sure it's 256 byte-aligned
if ((unsigned long) char_buffer % 256) {
Expand Down

0 comments on commit d9ab5a9

Please sign in to comment.