diff options
Diffstat (limited to 'lapi.c')
-rw-r--r-- | lapi.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -563,6 +563,7 @@ LUA_API void lua_pushcclosure (lua_State *L, lua_CFunction fn, int n) { | |||
563 | while (n--) { | 563 | while (n--) { |
564 | setobj2n(L, &cl->upvalue[n], s2v(L->top + n)); | 564 | setobj2n(L, &cl->upvalue[n], s2v(L->top + n)); |
565 | /* does not need barrier because closure is white */ | 565 | /* does not need barrier because closure is white */ |
566 | lua_assert(iswhite(cl)); | ||
566 | } | 567 | } |
567 | setclCvalue(L, s2v(L->top), cl); | 568 | setclCvalue(L, s2v(L->top), cl); |
568 | api_incr_top(L); | 569 | api_incr_top(L); |