Remove useless static_casts

This commit is contained in:
Luis Díaz Más
2022-03-22 18:54:41 +01:00
committed by Luis Diaz
parent ae4df71233
commit d7f35e33f0
18 changed files with 82 additions and 94 deletions
+2 -2
View File
@@ -937,10 +937,10 @@ int Params::nonoption(const std::string& argv) {
return rc;
} // Params::nonoption
static int readFileToBuf(FILE* f, Exiv2::DataBuf& buf) {
static size_t readFileToBuf(FILE* f, Exiv2::DataBuf& buf) {
const int buff_size = 4 * 1028;
std::vector<Exiv2::byte> bytes(buff_size);
int nBytes = 0;
size_t nBytes = 0;
bool more{true};
std::array<char, buff_size> buff;
while (more) {