summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@spawned.biz>2025-09-17 23:09:05 +0200
committerJoel Klinghed <the_jk@spawned.biz>2025-09-17 23:09:05 +0200
commit5fb06d7fc3a16df2a560021b0a2aacfb8972ba99 (patch)
tree29f7b4f0c0271db8e6ff9e2345713ec50230b004 /src
parent2a9e59adb5db8630ab7bdbdeedac623e3397989b (diff)
fixup! Add .clang-format
Diffstat (limited to 'src')
-rw-r--r--src/io.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/io.cc b/src/io.cc
index 14676bc..44970fe 100644
--- a/src/io.cc
+++ b/src/io.cc
@@ -48,9 +48,9 @@ class BasicReader : public Reader {
std::expected<size_t, ReadError> skip(size_t max) override {
off_t ret;
if (sizeof(size_t) > sizeof(off_t)) {
- // NOLINTNEXTLINE(bugprone-narrowing-conversions)
ret = lseek(
fd_.get(),
+ // NOLINTNEXTLINE(bugprone-narrowing-conversions)
std::min(static_cast<size_t>(std::numeric_limits<off_t>::max()), max),
SEEK_CUR);
} else {