diff options
| -rw-r--r-- | lbaselib.c | 7 |
1 files changed, 3 insertions, 4 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lbaselib.c,v 1.190 2006/05/31 16:50:40 roberto Exp roberto $ | 2 | ** $Id: lbaselib.c,v 1.191 2006/06/02 15:34:00 roberto Exp roberto $ |
| 3 | ** Basic library | 3 | ** Basic library |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -586,9 +586,8 @@ static int luaB_costatus (lua_State *L) { | |||
| 586 | 586 | ||
| 587 | static int luaB_corunning (lua_State *L) { | 587 | static int luaB_corunning (lua_State *L) { |
| 588 | if (lua_pushthread(L)) | 588 | if (lua_pushthread(L)) |
| 589 | return 0; /* main thread is not a coroutine */ | 589 | lua_pushnil(L); /* main thread is not a coroutine */ |
| 590 | else | 590 | return 1; |
| 591 | return 1; | ||
| 592 | } | 591 | } |
| 593 | 592 | ||
| 594 | 593 | ||
