summaryrefslogtreecommitdiff
path: root/Kernel/FileSystem/File.h
diff options
context:
space:
mode:
authorIdan Horowitz <idan.horowitz@gmail.com>2022-01-25 20:17:49 +0200
committerIdan Horowitz <idan.horowitz@gmail.com>2022-01-25 22:41:17 +0200
commit9ce537d7036bf4aff61d4ce10e7fe0b134c122b3 (patch)
tree3dc45992db0acbfad56c0555821909432a1f86cd /Kernel/FileSystem/File.h
parent0c630d568721f1efba2d5c0ee72c52c08b43d6e8 (diff)
downloadserenity-9ce537d7036bf4aff61d4ce10e7fe0b134c122b3.zip
Kernel: Use u64 instead of size_t for File::can_read offset
This ensures offsets will not be truncated on large files on i686.
Diffstat (limited to 'Kernel/FileSystem/File.h')
-rw-r--r--Kernel/FileSystem/File.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/FileSystem/File.h b/Kernel/FileSystem/File.h
index c3396fc74e..40677d6fc1 100644
--- a/Kernel/FileSystem/File.h
+++ b/Kernel/FileSystem/File.h
@@ -81,7 +81,7 @@ public:
virtual ErrorOr<NonnullRefPtr<OpenFileDescription>> open(int options);
virtual ErrorOr<void> close();
- virtual bool can_read(const OpenFileDescription&, size_t) const = 0;
+ virtual bool can_read(const OpenFileDescription&, u64) const = 0;
virtual bool can_write(const OpenFileDescription&, size_t) const = 0;
virtual ErrorOr<void> attach(OpenFileDescription&);