提交 4011d885 编写于 作者: B Behdad Esfahbod

[util] Remove use of ssize_t which was failing on MSVC

上级 bfa87163
......@@ -72,14 +72,14 @@ struct subset_consumer_t
fprintf(stderr, "Unable to open output file\n");
return false;
}
ssize_t bytes_written = fwrite(data, 1, data_length, fp_out);
int bytes_written = fwrite(data, 1, data_length, fp_out);
if (bytes_written == -1) {
fprintf(stderr, "Unable to write output file\n");
return false;
}
if (bytes_written != data_length) {
fprintf(stderr, "Expected %u bytes written, got %ld\n", data_length,
if ((unsigned int) bytes_written != data_length) {
fprintf(stderr, "Expected %u bytes written, got %d\n", data_length,
bytes_written);
return false;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册