diff --git a/programs/develop/clink/main.c b/programs/develop/clink/main.c index 1d9de5a5ff..5c67da14dd 100644 --- a/programs/develop/clink/main.c +++ b/programs/develop/clink/main.c @@ -1,4 +1,5 @@ #include +#include #include #include #include @@ -228,7 +229,7 @@ static void build(ObjectIr *ir, const char *outname) { size_t strtab_index = strtab_add(&strtab, name); char numstr[8] = { 0 }; - sprintf(numstr, "%u", strtab_index); + sprintf(numstr, "%lu", strtab_index); fwrite(numstr, 1, 7, out); } fwrite32(out, 0); // VirtualSize