forked from wolfSSL/wolfssl
Better stack size check return code handling.
This commit is contained in:
@@ -1386,7 +1386,7 @@ static INLINE int StackSizeCheck(func_args* args, thread_func tf)
|
||||
used = stackSize - i;
|
||||
printf("stack used = %d\n", used);
|
||||
|
||||
return (int)status;
|
||||
return (int)((size_t)status);
|
||||
}
|
||||
|
||||
|
||||
|
@@ -441,7 +441,7 @@
|
||||
#ifdef WOLFSSL_RIOT_OS
|
||||
#define EXIT_TEST(ret) exit(ret)
|
||||
#elif defined(HAVE_STACK_SIZE)
|
||||
#define EXIT_TEST(ret) return (void*)((long)(ret))
|
||||
#define EXIT_TEST(ret) return (void*)((size_t)(ret))
|
||||
#else
|
||||
#define EXIT_TEST(ret) return ret
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user