Skip to content

Commit

Permalink
fix size type
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi committed Feb 7, 2024
1 parent 0e7a862 commit c6b0a56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tbox/platform/windows/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ tb_bool_t tb_file_copy(tb_char_t const* path, tb_char_t const* dest, tb_size_t f
tb_hize_t size = tb_file_size(ifile);
while (writ < size)
{
tb_long_t real = tb_file_writf(ofile, ifile, writ, size - writ);
tb_hong_t real = tb_file_writf(ofile, ifile, writ, size - writ);
if (real > 0) writ += real;
else break;
}
Expand Down

0 comments on commit c6b0a56

Please sign in to comment.