diff options
| author | ruki <[email protected]> | 2020-08-04 23:07:19 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-08-04 23:07:19 +0800 |
| commit | 5a44a67feba23cb670bafdc8eed474a0a22f4f43 (patch) | |
| tree | 0a9f2518fd41a05ad77729c86467a1ef1f7ecc0d | |
| parent | 96b0eae26058482a83f5bbf57bab15a834339464 (diff) | |
fix compile errors
| -rw-r--r-- | core/src/xmake/io/stdfile.c | 2 | ||||
| -rw-r--r-- | xmake/core/base/io.lua | 1 |
2 files changed, 1 insertions, 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) |
