From: Kevin Day Date: Fri, 21 Jul 2023 02:57:50 +0000 (-0500) Subject: Bugfix: Incorrect sizeof() values for f_thread_mutex_attribute functions and f_thread... X-Git-Tag: 0.6.7~21 X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=e82a7d88686174d7b20b5aaf8d291f7cd6894ef7;p=fll Bugfix: Incorrect sizeof() values for f_thread_mutex_attribute functions and f_thread_lock functions. The wrong sizeof types are being used. This is likely a copy and paste error. --- diff --git a/level_0/f_thread/c/private-thread.c b/level_0/f_thread/c/private-thread.c index c3c37eb..ded9821 100644 --- a/level_0/f_thread/c/private-thread.c +++ b/level_0/f_thread/c/private-thread.c @@ -447,7 +447,7 @@ extern "C" { if (F_status_is_error(status)) return status; } // for - status = f_memory_adjust(attributes->size, length, sizeof(f_thread_lock_t), (void **) & attributes->array); + status = f_memory_adjust(attributes->size, length, sizeof(f_thread_lock_attribute_t), (void **) & attributes->array); if (F_status_is_error(status)) return status; attributes->size = length; @@ -471,7 +471,7 @@ extern "C" { if (F_status_is_error(status)) return status; } // for - status = f_memory_resize(attributes->size, length, sizeof(f_thread_lock_t), (void **) & attributes->array); + status = f_memory_resize(attributes->size, length, sizeof(f_thread_lock_attribute_t), (void **) & attributes->array); if (F_status_is_error(status)) return status; attributes->size = length; @@ -575,7 +575,7 @@ extern "C" { if (F_status_is_error(status)) return status; } // for - status = f_memory_adjust(attributes->size, length, sizeof(f_thread_mutex_t), (void **) & attributes->array); + status = f_memory_adjust(attributes->size, length, sizeof(f_thread_mutex_attribute_t), (void **) & attributes->array); if (F_status_is_error(status)) return status; attributes->size = length; @@ -599,7 +599,7 @@ extern "C" { if (F_status_is_error(status)) return status; } // for - status = f_memory_resize(attributes->size, length, sizeof(f_thread_mutex_t), (void **) & attributes->array); + status = f_memory_resize(attributes->size, length, sizeof(f_thread_mutex_attribute_t), (void **) & attributes->array); if (F_status_is_error(status)) return status; attributes->size = length;