diff options
| author | nasr <nsrddyn@gmail.com> | 2026-04-17 13:35:00 +0200 |
|---|---|---|
| committer | nasr <nsrddyn@gmail.com> | 2026-04-17 13:35:00 +0200 |
| commit | d184ac5bd33dfa02b5c157d086b7dd0491aa5b1a (patch) | |
| tree | 77fc3ffc75e5d80638c2eef4d3c075ec15257a79 /source/base/base_os.h | |
| parent | 154bf6f53529e88dfa03d6ff5034b575f92cdbb5 (diff) | |
checkpointmain
Diffstat (limited to 'source/base/base_os.h')
| -rw-r--r-- | source/base/base_os.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/base/base_os.h b/source/base/base_os.h index 4f84d93..4357214 100644 --- a/source/base/base_os.h +++ b/source/base/base_os.h | |||
| @@ -23,7 +23,7 @@ load_file(mem_arena *arena, const char *path) | |||
| 23 | } | 23 | } |
| 24 | 24 | ||
| 25 | 25 | ||
| 26 | result = PushString(arena, sbuf.st_size); | 26 | result = PushString8(arena, sbuf.st_size); |
| 27 | 27 | ||
| 28 | result.size = (u64)sbuf.st_size; | 28 | result.size = (u64)sbuf.st_size; |
| 29 | if(result.size != 0) | 29 | if(result.size != 0) |
| @@ -38,7 +38,6 @@ load_file(mem_arena *arena, const char *path) | |||
| 38 | internal string8 | 38 | internal string8 |
| 39 | write_file(const char *path, string8 data) | 39 | write_file(const char *path, string8 data) |
| 40 | { | 40 | { |
| 41 | |||
| 42 | string8 result = {0}; | 41 | string8 result = {0}; |
| 43 | s32 file = open(path, O_WRONLY | O_CREAT | O_TRUNC, 0644); | 42 | s32 file = open(path, O_WRONLY | O_CREAT | O_TRUNC, 0644); |
| 44 | if(file == -1) | 43 | if(file == -1) |
