mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-27 14:12:36 +00:00
fixing fwrite calls I had messed up
This commit is contained in:
parent
5673267c01
commit
9ef0435f9d
1 changed files with 6 additions and 6 deletions
12
code.c
12
code.c
|
@ -215,12 +215,12 @@ bool code_write(const char *filename) {
|
|||
return false;
|
||||
|
||||
if (1 != fwrite(&code_header, sizeof(prog_header), 1, fp) ||
|
||||
1 != fwrite(code_statements_data, sizeof(prog_section_statement)*code_statements_elements, 1, fp) ||
|
||||
1 != fwrite(code_defs_data, sizeof(prog_section_def) *code_defs_elements, 1, fp) ||
|
||||
1 != fwrite(code_fields_data, sizeof(prog_section_field) *code_fields_elements, 1, fp) ||
|
||||
1 != fwrite(code_functions_data, sizeof(prog_section_function) *code_functions_elements, 1, fp) ||
|
||||
1 != fwrite(code_globals_data, sizeof(int32_t) *code_globals_elements, 1, fp) ||
|
||||
1 != fwrite(code_chars_data, 1 *code_chars_elements, 1, fp))
|
||||
code_statements_elements != fwrite(code_statements_data, sizeof(prog_section_statement), code_statements_elements, fp) ||
|
||||
code_defs_elements != fwrite(code_defs_data, sizeof(prog_section_def) , code_defs_elements , fp) ||
|
||||
code_fields_elements != fwrite(code_fields_data, sizeof(prog_section_field) , code_fields_elements , fp) ||
|
||||
code_functions_elements != fwrite(code_functions_data, sizeof(prog_section_function) , code_functions_elements , fp) ||
|
||||
code_globals_elements != fwrite(code_globals_data, sizeof(int32_t) , code_globals_elements , fp) ||
|
||||
code_chars_elements != fwrite(code_chars_data, 1 , code_chars_elements , fp))
|
||||
{
|
||||
fclose(fp);
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue