From 5a44a67feba23cb670bafdc8eed474a0a22f4f43 Mon Sep 17 00:00:00 2001 From: ruki Date: Tue, 4 Aug 2020 23:07:19 +0800 Subject: fix compile errors --- core/src/xmake/io/stdfile.c | 2 +- xmake/core/base/io.lua | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/core/src/xmake/io/stdfile.c b/core/src/xmake/io/stdfile.c index 6987d5ef5..fa25cfffc 100644 --- a/core/src/xmake/io/stdfile.c +++ b/core/src/xmake/io/stdfile.c @@ -93,7 +93,7 @@ static xm_io_file_t* xm_io_stdfile_new(lua_State* lua, tb_size_t type) } // new file - xm_io_file_t* file = lua_newuserdata(lua, sizeof(xm_io_file_t)); + xm_io_file_t* file = (xm_io_file_t*)lua_newuserdata(lua, sizeof(xm_io_file_t)); tb_assert_and_check_return_val(file, tb_null); // init file diff --git a/xmake/core/base/io.lua b/xmake/core/base/io.lua index d484d179f..189ff536f 100644 --- a/xmake/core/base/io.lua +++ b/xmake/core/base/io.lua @@ -539,7 +539,6 @@ end -- get std file, /dev/stdin, /dev/stdout, /dev/stderr function io.stdfile(filepath) - print("io.stdfile", filepath) local file = nil if filepath == "/dev/stdin" then file = io._stdfile(1) -- cgit v1.3.1