diff options
| author | ruki <[email protected]> | 2019-07-06 10:12:45 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-07-06 10:12:45 +0800 |
| commit | d6dd8b3570ba883f2e1e630c7fb16023d6a47a3a (patch) | |
| tree | 70f587467b431816d566d5770f1318fb2dbbe28a /core/src | |
| parent | 7abde4ddc3f27134902bf795771bdd0878127c81 (diff) | |
fix compile error
Diffstat (limited to 'core/src')
| -rw-r--r-- | core/src/xmake/io/file_read.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/xmake/io/file_read.c b/core/src/xmake/io/file_read.c index 4b771a25c..959b820ec 100644 --- a/core/src/xmake/io/file_read.c +++ b/core/src/xmake/io/file_read.c @@ -62,8 +62,8 @@ static tb_long_t xm_io_file_buffer_readline(tb_stream_ref_t stream, tb_buffer_re tb_char_t const* e = tb_strnchr((tb_char_t const*)p, TB_STREAM_BLOCK_MAXN, '\n'); if (e) { - if (!tb_stream_skip(stream, n)) return -1; tb_size_t n = (tb_byte_t const*)e + 1 - p; + if (!tb_stream_skip(stream, n)) return -1; tb_buffer_memncat(line, p, n); return tb_buffer_size(line); } |
