forked from wolfSSL/wolfssl
test.h: fix math in final "stack used" message when -DHAVE_STACK_SIZE_VERBOSE.
This commit is contained in:
@ -2168,7 +2168,7 @@ static WC_INLINE int StackSizeCheck(func_args* args, thread_func tf)
|
|||||||
|
|
||||||
free(myStack);
|
free(myStack);
|
||||||
#ifdef HAVE_STACK_SIZE_VERBOSE
|
#ifdef HAVE_STACK_SIZE_VERBOSE
|
||||||
printf("stack used = %lu\n", StackSizeCheck_stackSizeHWM);
|
printf("stack used = %lu\n", StackSizeCheck_stackSizeHWM > (stackSize - i) ? StackSizeCheck_stackSizeHWM : (stackSize - i));
|
||||||
#else
|
#else
|
||||||
{
|
{
|
||||||
size_t used = stackSize - i;
|
size_t used = stackSize - i;
|
||||||
|
Reference in New Issue
Block a user