diff options
author | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2013-12-20 20:23:03 -0800 |
---|---|---|
committer | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2013-12-20 20:23:03 -0800 |
commit | 77e9a8bb42285c118a8a0d51fa166d838cc9f473 (patch) | |
tree | da289c71f009ce12c9e58ce943680a36f3d9cd11 /src/Input.cc | |
parent | 16594884da1c20c60fa1211c76939696547c02b5 (diff) |
Switching off_t to off64_t.
Diffstat (limited to 'src/Input.cc')
-rw-r--r-- | src/Input.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Input.cc b/src/Input.cc index 64a05ec..87d9be3 100644 --- a/src/Input.cc +++ b/src/Input.cc @@ -217,10 +217,10 @@ namespace { class AsyncOpRead : public Balau::AsyncOperation { public: - AsyncOpRead(int fd, void * buf, size_t count, off_t offset, cbResults_t * results) : m_fd(fd), m_buf(buf), m_count(count), m_offset(offset), m_results(results) { } + AsyncOpRead(int fd, void * buf, size_t count, off64_t offset, cbResults_t * results) : m_fd(fd), m_buf(buf), m_count(count), m_offset(offset), m_results(results) { } virtual void run() { #ifdef _MSC_VER - off_t offset = lseek(m_fd, m_offset, SEEK_SET); + off64_t offset = lseek(m_fd, m_offset, SEEK_SET); if (offset < 0) { m_results->errorno = errno; return; @@ -239,7 +239,7 @@ class AsyncOpRead : public Balau::AsyncOperation { int m_fd; void * m_buf; size_t m_count; - off_t m_offset; + off64_t m_offset; cbResults_t * m_results; }; @@ -304,7 +304,7 @@ const char * Balau::Input::getName() { return m_name.to_charp(); } -off_t Balau::Input::getSize() { +off64_t Balau::Input::getSize() { return m_size; } |