Skip to content

Commit

Permalink
Fix MinGW: Format %lu must be unsigned long. (google#544)
Browse files Browse the repository at this point in the history
  • Loading branch information
dneto0 committed Jan 16, 2019
1 parent 5c97fca commit d93ef8b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libshaderc_spvc/src/spvc_c_smoke_test.c
Expand Up @@ -75,7 +75,8 @@ int main() {
// Early exit on failure.
return -1;
}
printf("success! %lu characters of compiler output\n", strlen(shaderc_spvc_result_get_output(result)));
printf("success! %lu characters of compiler output\n",
(unsigned long)(strlen(shaderc_spvc_result_get_output(result))));
shaderc_compile_options_release(opt);
shaderc_result_release(res);
shaderc_spvc_result_release(result);
Expand Down

0 comments on commit d93ef8b

Please sign in to comment.