summaryrefslogtreecommitdiffstats
path: root/lem/io/core.c
diff options
context:
space:
mode:
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);