commit 0a0494feb899d19ef05bac08d1b4db729e699c53 (tree)
parent e5982e44406e6d00904df861f95c0ce6678d3273
Author: Andrew Kelley <superjoe30@gmail.com>
Date: Fri, 19 Feb 2016 14:02:36 -0700
fix build error with signed/unsigned
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/os.cpp b/src/os.cpp
@@ -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");