Skip to content

Commit

Permalink
revert: f:read的buff不需要太大
Browse files Browse the repository at this point in the history
  • Loading branch information
wendal committed Mar 24, 2023
1 parent e2ba159 commit 59978db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/src/liolib.c
Expand Up @@ -571,7 +571,7 @@ static int test_eof (lua_State *L, FILE *f) {
static int read_line (lua_State *L, FILE *f, int chop) {
luaL_Buffer b;
int c = '\0';
#define READLINE_BUFF_SIZE (2048)
#define READLINE_BUFF_SIZE (1024)
luaL_buffinitsize(L, &b, READLINE_BUFF_SIZE);
// luaL_buffinit(L, &b);
while (c != EOF && c != '\n') { /* repeat until end of line */
Expand Down

0 comments on commit 59978db

Please sign in to comment.