Skip to content

Commit 2355ed8

Browse files
committed
✨ cast to ensure the right type in C++ mode
1 parent 366a4d7 commit 2355ed8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/ztd/thread/threads.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -470,12 +470,12 @@ int ztdc_thrd_get_c32name(thrd_t __thr, size_t __buffer_size, ztd_char32_t* __bu
470470
/// out of internal space. String sizes less than this (including the null terminator).
471471
///
472472
/// @remarks This value may be "0" and thus should have its use guarded when used for e.g. an array size.
473-
#define ZTDC_THRD_MAXIMUM_NAME_SIZE __ZTDC_DETAIL_THRD_NAME_MAX_SIZE
473+
#define ZTDC_THRD_MAXIMUM_NAME_SIZE ((size_t)__ZTDC_DETAIL_THRD_NAME_MAX_SIZE)
474474

475475
/// @brief The absolute minimum stack size an implementation can tolerate.
476476
///
477477
/// @remarks This is only a suggestion: implementations can raise or lower stack sizes through means at run time and
478478
/// compilation time.
479-
#define ZTDC_THRD_MINIMUM_STACK_SIZE __ZTDC_DETAIL_THRD_MINIMUM_STACK_SIZE
479+
#define ZTDC_THRD_MINIMUM_STACK_SIZE ((size_t)__ZTDC_DETAIL_THRD_MINIMUM_STACK_SIZE)
480480

481481
#endif

0 commit comments

Comments
 (0)