mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 15:18:49 +00:00
Fix struct #packed alignment calculation
This commit is contained in:
+1
-1
@@ -38,7 +38,7 @@ read_entire_file :: proc(name: string) -> (data: []u8, success: bool) {
|
||||
}
|
||||
|
||||
write_entire_file :: proc(name: string, data: []u8) -> (sucess: bool) {
|
||||
fd, err := open(name, O_WRONLY, 0);
|
||||
fd, err := open(name, O_WRONLY|O_CREAT, 0);
|
||||
if err != 0 {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user