From d64871855128af6fa41a8c089686552ca1b66c70 Mon Sep 17 00:00:00 2001 From: Aki Date: Wed, 24 Feb 2021 21:22:12 +0100 Subject: Replaced pushstring with pushliteral where applicable --- stream.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'stream.c') diff --git a/stream.c b/stream.c index 8e92358..7700365 100644 --- a/stream.c +++ b/stream.c @@ -16,13 +16,13 @@ int stream_push_new(lua_State * L, const int fd) if (1 == luaL_newmetatable(L, "stream")) { - lua_pushstring(L, "__gc"); + lua_pushliteral(L, "__gc"); lua_pushcfunction(L, stream_gc); lua_rawset(L, -3); - lua_pushstring(L, "__index"); + lua_pushliteral(L, "__index"); lua_createtable(L, 0, 1); - lua_pushstring(L, "read"); + lua_pushliteral(L, "read"); lua_pushcfunction(L, stream_read); lua_rawset(L, -3); lua_rawset(L, -3); -- cgit v1.1