Silence warning in libco/x86.c

This commit is contained in:
twinaphex 2014-12-09 17:04:12 +01:00
parent 8baf91c105
commit 72cc10f363
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ cothread_t co_create(unsigned int size, void (*entrypoint)(void))
size += 256; /* allocate additional space for storage */ size += 256; /* 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 *p = (long*)((char*)handle + size); /* seek to top of stack */ long *p = (long*)((char*)handle + size); /* seek to top of stack */
*--p = (long)crash; /* crash if entrypoint returns */ *--p = (long)crash; /* crash if entrypoint returns */