| author | |
| committer | |
| log | 0a0494feb899d19ef05bac08d1b4db729e699c53 |
| tree | 7ea2fced1a8a247531eac4213eb3eb704e80c051 |
| parent | e5982e44406e6d00904df861f95c0ce6678d3273 |
1 files changed, 1 insertions(+), 1 deletions(-)
src/os.cpp+1-1| ... | ... | @@ -473,7 +473,7 @@ static int os_buf_to_tmp_file_posix(Buf *contents, Buf *suffix, Buf *out_tmp_pat |
| 473 | 473 | } |
| 474 | 474 | |
| 475 | 475 | size_t amt_written = fwrite(buf_ptr(contents), 1, buf_len(contents), f); |
| 476 | if (amt_written != buf_len(contents)) | |
| 476 | if (amt_written != (size_t)buf_len(contents)) | |
| 477 | 477 | zig_panic("write failed: %s", strerror(errno)); |
| 478 | 478 | if (fclose(f)) |
| 479 | 479 | zig_panic("close failed"); |