Fixed credit for byuu and warning in lib/cothread/amd64.c compile (no whatsnew)

This commit is contained in:
Miodrag Milanovic 2011-06-25 15:45:02 +00:00
parent b78e135db8
commit 650f483d2d
2 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@
cothread.c
Class wrapper around buyy's cothread library.
Class wrapper around byuu's cothread library.
****************************************************************************

View File

@ -80,7 +80,7 @@ cothread_t co_create(unsigned int size, void (*entrypoint)(void)) {
size += 512; /* allocate additional space for storage */
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 */
*--p = (long long)crash; /* crash if entrypoint returns */
*--p = (long long)entrypoint; /* start of function */