mirror of
https://github.com/ziglang/zig.git
synced 2026-02-13 04:48:20 +00:00
fix build error with signed/unsigned
This commit is contained in:
parent
e5982e4440
commit
0a0494feb8
@ -473,7 +473,7 @@ static int os_buf_to_tmp_file_posix(Buf *contents, Buf *suffix, Buf *out_tmp_pat
|
||||
}
|
||||
|
||||
size_t amt_written = fwrite(buf_ptr(contents), 1, buf_len(contents), f);
|
||||
if (amt_written != buf_len(contents))
|
||||
if (amt_written != (size_t)buf_len(contents))
|
||||
zig_panic("write failed: %s", strerror(errno));
|
||||
if (fclose(f))
|
||||
zig_panic("close failed");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user