summaryrefslogtreecommitdiffstats
path: root/lem/io/core.c
diff options
context:
space:
mode:
authorEmil Renner Berthing <esmil@mailme.dk>2016-01-07 22:39:28 +0100
committerEmil Renner Berthing <esmil@mailme.dk>2016-01-08 00:20:13 +0100
commit4c0ad860e7710b8cecaa13b96dfc6bdb8d6a14ea (patch)
tree089aff1638d71783695571cdae7cbf026277b5eb /lem/io/core.c
parente005effffa9b69bb1a93a8031308700ae8e4a857 (diff)
downloadlem-4c0ad860e7710b8cecaa13b96dfc6bdb8d6a14ea.tar.gz
lem-4c0ad860e7710b8cecaa13b96dfc6bdb8d6a14ea.tar.xz
lem-4c0ad860e7710b8cecaa13b96dfc6bdb8d6a14ea.zip
Lua 5.3.2
Diffstat (limited to 'lem/io/core.c')
-rw-r--r--lem/io/core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lem/io/core.c b/lem/io/core.c
index 1ec3843..4844bac 100644
--- a/lem/io/core.c
+++ b/lem/io/core.c
@@ -348,7 +348,7 @@ io_fromfd_reap(struct lem_async *a)
static int
io_fromfd(lua_State *T)
{
- int fd = luaL_checkint(T, 1);
+ int fd = luaL_checkinteger(T, 1);
struct fromfd *ff;
if (fd < 0)
@@ -425,7 +425,7 @@ io_popen(lua_State *T)
posix_spawn_file_actions_destroy(&fa);
close(fd[1]);
stream_new(T, fd[0], lua_upvalueindex(1));
- lua_pushnumber(T, pid);
+ lua_pushinteger(T, pid);
return 2;
error:
posix_spawn_file_actions_destroy(&fa);