authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2016-02-19 14:02:36-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2016-02-19 14:02:36-07:00
log0a0494feb899d19ef05bac08d1b4db729e699c53
tree7ea2fced1a8a247531eac4213eb3eb704e80c051
parente5982e44406e6d00904df861f95c0ce6678d3273

fix build error with signed/unsigned


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,7 +473,7 @@ static int os_buf_to_tmp_file_posix(Buf *contents, Buf *suffix, Buf *out_tmp_pat
473 }473 }
474474
475 size_t amt_written = fwrite(buf_ptr(contents), 1, buf_len(contents), f);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 zig_panic("write failed: %s", strerror(errno));477 zig_panic("write failed: %s", strerror(errno));
478 if (fclose(f))478 if (fclose(f))
479 zig_panic("close failed");479 zig_panic("close failed");