summaryrefslogtreecommitdiffhomepage
path: root/stream.c
diff options
context:
space:
mode:
Diffstat (limited to 'stream.c')
-rw-r--r--stream.c6
1 files changed, 3 insertions, 3 deletions
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);