diff options
| author | ruki <[email protected]> | 2025-12-22 22:31:39 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-12-22 22:31:39 +0800 |
| commit | 164b3fd4ed609e7a3120e39c12be99497958fbfe (patch) | |
| tree | 08bae27d0ec7ade393a494257b124461e1c18328 | |
| parent | a2998b38cb3bf7e60eda78e58cad17a6a1e49faa (diff) | |
fix compile error
| -rw-r--r-- | core/src/xmake/binutils/macho/rpath.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/core/src/xmake/binutils/macho/rpath.c b/core/src/xmake/binutils/macho/rpath.c index 2d64e3842..e80367cfc 100644 --- a/core/src/xmake/binutils/macho/rpath.c +++ b/core/src/xmake/binutils/macho/rpath.c @@ -150,16 +150,16 @@ tb_bool_t xm_binutils_macho_rpath_clean(tb_stream_ref_t istream, tb_hize_t base_ if (found) { // zero out the remaining space if (read_offset > write_offset) { - tb_size_t diff = read_offset - write_offset; + tb_hize_t diff = read_offset - write_offset; if (!tb_stream_seek(istream, write_offset)) break; - + tb_byte_t zero = 0; tb_bool_t write_ok = tb_true; - for (tb_size_t k = 0; k < diff; k++) { - if (!tb_stream_bwrit(istream, &zero, 1)) { - write_ok = tb_false; - break; - } + for (tb_hize_t k = 0; k < diff; k++) { + if (!tb_stream_bwrit(istream, &zero, 1)) { + write_ok = tb_false; + break; + } } if (!write_ok) break; } |
