Skip to content

Commit 59978db

Browse files
committed
revert: f:read的buff不需要太大
1 parent e2ba159 commit 59978db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/src/liolib.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ static int test_eof (lua_State *L, FILE *f) {
571571
static int read_line (lua_State *L, FILE *f, int chop) {
572572
luaL_Buffer b;
573573
int c = '\0';
574-
#define READLINE_BUFF_SIZE (2048)
574+
#define READLINE_BUFF_SIZE (1024)
575575
luaL_buffinitsize(L, &b, READLINE_BUFF_SIZE);
576576
// luaL_buffinit(L, &b);
577577
while (c != EOF && c != '\n') { /* repeat until end of line */

0 commit comments

Comments
 (0)