[clink] Make it compile by GCC

git-svn-id: svn://kolibrios.org@9220 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Magomed Kostoev (mkostoevr) 2021-10-17 09:33:01 +00:00
parent 496d1b957e
commit b5163461dc

View File

@ -1,4 +1,5 @@
#include <stdarg.h> #include <stdarg.h>
#include <stddef.h>
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
#include <stdint.h> #include <stdint.h>
@ -228,7 +229,7 @@ static void build(ObjectIr *ir, const char *outname) {
size_t strtab_index = strtab_add(&strtab, name); size_t strtab_index = strtab_add(&strtab, name);
char numstr[8] = { 0 }; char numstr[8] = { 0 };
sprintf(numstr, "%u", strtab_index); sprintf(numstr, "%lu", strtab_index);
fwrite(numstr, 1, 7, out); fwrite(numstr, 1, 7, out);
} }
fwrite32(out, 0); // VirtualSize fwrite32(out, 0); // VirtualSize