From 7d67c87a474a1cd1f9fbea98e4d63a8c857abdec Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 8 Dec 2021 19:39:50 +0100 Subject: [PATCH] io/FileReader: use std::size_t --- src/io/FileReader.cxx | 10 +++++----- src/io/FileReader.hxx | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/io/FileReader.cxx b/src/io/FileReader.cxx index ac474bfb7..a8eb06680 100644 --- a/src/io/FileReader.cxx +++ b/src/io/FileReader.cxx @@ -1,5 +1,5 @@ /* - * Copyright 2014-2019 Max Kellermann + * Copyright 2014-2021 Max Kellermann * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -54,8 +54,8 @@ FileReader::GetFileInfo() const return FileInfo(path); } -size_t -FileReader::Read(void *data, size_t size) +std::size_t +FileReader::Read(void *data, std::size_t size) { assert(IsDefined()); @@ -116,8 +116,8 @@ FileReader::GetFileInfo() const return info; } -size_t -FileReader::Read(void *data, size_t size) +std::size_t +FileReader::Read(void *data, std::size_t size) { assert(IsDefined()); diff --git a/src/io/FileReader.hxx b/src/io/FileReader.hxx index 6f1a34923..fd3c709e9 100644 --- a/src/io/FileReader.hxx +++ b/src/io/FileReader.hxx @@ -1,5 +1,5 @@ /* - * Copyright 2014-2019 Max Kellermann + * Copyright 2014-2021 Max Kellermann * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -127,7 +127,7 @@ public: void Skip(off_t offset); /* virtual methods from class Reader */ - size_t Read(void *data, size_t size) override; + std::size_t Read(void *data, std::size_t size) override; }; #endif