From 2b5ba6af87984466f8692e62bcaea4d9603b70a1 Mon Sep 17 00:00:00 2001 From: hatoo Date: Wed, 21 Aug 2024 23:54:55 +0900 Subject: [PATCH] Fix typo I've found while doing chap17 (#64) --- tests/chapter_17/valid/void_pointer/common_pointer_type.c | 2 +- .../chapter_17/valid/void_pointer/memory_management_functions.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/chapter_17/valid/void_pointer/common_pointer_type.c b/tests/chapter_17/valid/void_pointer/common_pointer_type.c index 1a06e35d..c119e340 100644 --- a/tests/chapter_17/valid/void_pointer/common_pointer_type.c +++ b/tests/chapter_17/valid/void_pointer/common_pointer_type.c @@ -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) { diff --git a/tests/chapter_17/valid/void_pointer/memory_management_functions.c b/tests/chapter_17/valid/void_pointer/memory_management_functions.c index 81342a2e..6da15981 100644 --- a/tests/chapter_17/valid/void_pointer/memory_management_functions.c +++ b/tests/chapter_17/valid/void_pointer/memory_management_functions.c @@ -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) {