Silence libco/amd64.c warning
This commit is contained in:
parent
b3f8e39a80
commit
bda151e388
|
@ -134,7 +134,7 @@ cothread_t co_create(unsigned int size, void (*entrypoint)(void))
|
||||||
size += 512; /* allocate additional space for storage */
|
size += 512; /* allocate additional space for storage */
|
||||||
size &= ~15; /* align stack to 16-byte boundary */
|
size &= ~15; /* align stack to 16-byte boundary */
|
||||||
|
|
||||||
if(handle = (cothread_t)malloc(size))
|
if((handle = (cothread_t)malloc(size)))
|
||||||
{
|
{
|
||||||
long long *p = (long long*)((char*)handle + size); /* seek to top of stack */
|
long long *p = (long long*)((char*)handle + size); /* seek to top of stack */
|
||||||
*--p = (long long)crash; /* crash if entrypoint returns */
|
*--p = (long long)crash; /* crash if entrypoint returns */
|
||||||
|
|
Loading…
Reference in New Issue