diff options
Diffstat (limited to 'stream.c')
-rw-r--r-- | stream.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); |