diff options
| -rw-r--r-- | lundump.c | 4 | ||||
| -rw-r--r-- | manual/manual.of | 11 |
2 files changed, 13 insertions, 2 deletions
| @@ -26,7 +26,7 @@ | |||
| 26 | 26 | ||
| 27 | 27 | ||
| 28 | #if !defined(luai_verifycode) | 28 | #if !defined(luai_verifycode) |
| 29 | #define luai_verifycode(L,b,f) /* empty */ | 29 | #define luai_verifycode(L,f) /* empty */ |
| 30 | #endif | 30 | #endif |
| 31 | 31 | ||
| 32 | 32 | ||
| @@ -317,7 +317,7 @@ LClosure *luaU_undump(lua_State *L, ZIO *Z, const char *name) { | |||
| 317 | luaC_objbarrier(L, cl, cl->p); | 317 | luaC_objbarrier(L, cl, cl->p); |
| 318 | loadFunction(&S, cl->p, NULL); | 318 | loadFunction(&S, cl->p, NULL); |
| 319 | lua_assert(cl->nupvalues == cl->p->sizeupvalues); | 319 | lua_assert(cl->nupvalues == cl->p->sizeupvalues); |
| 320 | luai_verifycode(L, buff, cl->p); | 320 | luai_verifycode(L, cl->p); |
| 321 | return cl; | 321 | return cl; |
| 322 | } | 322 | } |
| 323 | 323 | ||
diff --git a/manual/manual.of b/manual/manual.of index 4d1794fc..9c275d15 100644 --- a/manual/manual.of +++ b/manual/manual.of | |||
| @@ -9116,6 +9116,17 @@ of the function @Lid{collectgarbage} are deprecated. | |||
| 9116 | You should use the new option @St{incremental} to set them. | 9116 | You should use the new option @St{incremental} to set them. |
| 9117 | } | 9117 | } |
| 9118 | 9118 | ||
| 9119 | @item{ | ||
| 9120 | The function @Lid{io.lines} now returns four values, | ||
| 9121 | instead of just one. | ||
| 9122 | That can be a problem when it is used as the sole | ||
| 9123 | argument to another function that has optional parameters, | ||
| 9124 | such as in @T{load(io.lines(filename, "L"))}. | ||
| 9125 | To fix that issue, | ||
| 9126 | you can wrap the call into parentheses, | ||
| 9127 | to adjust its number of results to one. | ||
| 9128 | } | ||
| 9129 | |||
| 9119 | } | 9130 | } |
| 9120 | 9131 | ||
| 9121 | } | 9132 | } |
