summaryrefslogtreecommitdiff
path: root/source/base/base_os.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/base/base_os.h')
-rw-r--r--source/base/base_os.h3
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)
38internal string8 38internal string8
39write_file(const char *path, string8 data) 39write_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)