fixed a bug in socket accept

This commit is contained in:
hyunghwan.chung
2018-01-14 15:11:53 +00:00
parent 2b56b1c2b0
commit 2255425b3f
3 changed files with 11 additions and 4 deletions

View File

@ -192,7 +192,7 @@ static moo_pfrc_t pf_accept_socket (moo_t* moo, moo_ooi_t nargs)
}
newsck->handle = MOO_SMOOI_TO_OOP(newfd);
MOO_STACK_SETRETTORCV (moo, nargs);
MOO_STACK_SETRET (moo, nargs, (moo_oop_t)newsck);
return MOO_PF_SUCCESS;
}