[macOS] fix format warning

This commit is contained in:
Christian Jullien 2021-07-27 07:54:46 +02:00
parent a7a13896b3
commit b1d9de6794

View File

@ -877,7 +877,7 @@ ST_FUNC void tcc_add_macos_sdkpath(TCCState* s)
if (sdkroot)
pos = strstr(sdkroot,"SDKs/MacOSX");
if (pos)
cstr_printf(&path, "%.*s.sdk/usr/lib", pos - sdkroot + 11, sdkroot);
cstr_printf(&path, "%.*s.sdk/usr/lib", (int)(pos - sdkroot + 11), sdkroot);
/* must use free from libc directly */
#pragma push_macro("free")
#undef free