diff options
author | tycho <work.tycho@gmail.com> | 2015-05-19 14:33:34 +0200 |
---|---|---|
committer | tycho <work.tycho@gmail.com> | 2015-05-19 14:33:34 +0200 |
commit | 6cccd2aabbb02fbdc59d55aefd6fd0010f901140 (patch) | |
tree | 6b8ad2542a825b426f237686f3364dc9d7d15bce /src/OSSupport/File.cpp | |
parent | Fixed compile and a few more warnings (diff) | |
download | cuberite-6cccd2aabbb02fbdc59d55aefd6fd0010f901140.tar cuberite-6cccd2aabbb02fbdc59d55aefd6fd0010f901140.tar.gz cuberite-6cccd2aabbb02fbdc59d55aefd6fd0010f901140.tar.bz2 cuberite-6cccd2aabbb02fbdc59d55aefd6fd0010f901140.tar.lz cuberite-6cccd2aabbb02fbdc59d55aefd6fd0010f901140.tar.xz cuberite-6cccd2aabbb02fbdc59d55aefd6fd0010f901140.tar.zst cuberite-6cccd2aabbb02fbdc59d55aefd6fd0010f901140.zip |
Diffstat (limited to '')
-rw-r--r-- | src/OSSupport/File.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/OSSupport/File.cpp b/src/OSSupport/File.cpp index 53f7c4afe..ed0dda681 100644 --- a/src/OSSupport/File.cpp +++ b/src/OSSupport/File.cpp @@ -180,7 +180,7 @@ int cFile::Write(const void * iBuffer, size_t iNumBytes) -int cFile::Seek (int iPosition) +long cFile::Seek (int iPosition) { ASSERT(IsOpen()); @@ -193,7 +193,7 @@ int cFile::Seek (int iPosition) { return -1; } - return (int)ftell(m_File); + return ftell(m_File); } @@ -201,7 +201,7 @@ int cFile::Seek (int iPosition) -ssize_t cFile::Tell (void) const +long cFile::Tell (void) const { ASSERT(IsOpen()); @@ -217,7 +217,7 @@ ssize_t cFile::Tell (void) const -ssize_t cFile::GetSize(void) const +long cFile::GetSize(void) const { ASSERT(IsOpen()); @@ -226,7 +226,7 @@ ssize_t cFile::GetSize(void) const return -1; } - ssize_t CurPos = Tell(); + long CurPos = Tell(); if (CurPos < 0) { return -1; @@ -235,7 +235,7 @@ ssize_t cFile::GetSize(void) const { return -1; } - ssize_t res = Tell(); + long res = Tell(); if (fseek(m_File, (long)CurPos, SEEK_SET) != 0) { return -1; @@ -361,7 +361,7 @@ bool cFile::IsFile(const AString & a_Path) -ssize_t cFile::GetSize(const AString & a_FileName) +long cFile::GetSize(const AString & a_FileName) { struct stat st; if (stat(a_FileName.c_str(), &st) == 0) |