Better stack size check return code handling.

This commit is contained in:
David Garske
2017-04-03 09:41:12 -07:00
parent 34a4f1fae0
commit 29eabe5535
2 changed files with 2 additions and 2 deletions

View File

@@ -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);
}

View File

@@ -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