fixed size_t bugs

This commit is contained in:
Timerix 2024-08-07 18:03:40 +03:00
parent b921791be5
commit e062aba71a

View File

@ -117,6 +117,7 @@ void write_header(FILE* out_file, const char* out_file_path){
"#endif\n" "#endif\n"
"\n" "\n"
"#include <stdint.h>\n" "#include <stdint.h>\n"
"#include <stddef.h>\n"
"\n" "\n"
"typedef struct {\n" "typedef struct {\n"
" const char* path;\n" " const char* path;\n"
@ -189,7 +190,7 @@ void process_file(const char* input_file_path,
// writing input file content // writing input file content
int byte=0; int byte=0;
size_t size=0; long long unsigned int size=0;
while( (byte=fgetc(input_file)) != EOF ){ while( (byte=fgetc(input_file)) != EOF ){
if(size%16==0) if(size%16==0)
fprintf(out_file, "\n "); fprintf(out_file, "\n ");