From 0ea6809b49077c35003e76a7a6b84dadf4f9b21c Mon Sep 17 00:00:00 2001 From: Laytan Date: Sun, 25 Aug 2024 18:43:23 +0200 Subject: [PATCH] os2: remove return on file_size error from read_entire_file file_size can't return .No_Size because it uses io.size and only returns an io.Error, removing this so it works when file_size fails (linux pipes for instance) --- core/os/os2/file_util.odin | 3 --- 1 file changed, 3 deletions(-) diff --git a/core/os/os2/file_util.odin b/core/os/os2/file_util.odin index e328f9a02..963544985 100644 --- a/core/os/os2/file_util.odin +++ b/core/os/os2/file_util.odin @@ -125,9 +125,6 @@ read_entire_file_from_file :: proc(f: ^File, allocator: runtime.Allocator) -> (d has_size = true size = int(size64) } - } else if serr != .No_Size { - err = serr - return } if has_size && size > 0 {