Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

o file size better represented with off_t than size_t

  • Loading branch information...
commit eda44dc178848dfd63dc7de6864af3467e0aa9c7 1 parent 876708c
@hzeller authored
Showing with 3 additions and 3 deletions.
  1. +1 −1  pass-through-handler.cc
  2. +2 −2 pass-through-handler.h
View
2  pass-through-handler.cc
@@ -45,7 +45,7 @@ int PassThroughHandler::Read(char *buf, size_t size, off_t offset) {
const int result = pread(filedes_, buf, size, offset);
if (result < 0)
return -errno;
- max_accessed_ = std::max<size_t>(max_accessed_, offset + result);
+ max_accessed_ = std::max<off_t>(max_accessed_, offset + result);
return result;
}
View
4 pass-through-handler.h
@@ -35,8 +35,8 @@ class PassThroughHandler : public FileHandler {
private:
const int filedes_;
- size_t file_size_;
- size_t max_accessed_;
+ off_t file_size_;
+ off_t max_accessed_;
HandlerStats info_stats_;
};
Please sign in to comment.
Something went wrong with that request. Please try again.