summaryrefslogtreecommitdiffstats
path: root/src/OSSupport/File.h
diff options
context:
space:
mode:
authorTycho <work.tycho+git@gmail.com>2014-04-28 19:31:07 +0200
committerTycho <work.tycho+git@gmail.com>2014-04-28 19:31:07 +0200
commita42480cf8266a1e066209823aab42c9a3829adbc (patch)
tree8b73109b66b74ca1bc39f4d29e2c4e428b85ccaf /src/OSSupport/File.h
parentWorked around const pointer (diff)
downloadcuberite-a42480cf8266a1e066209823aab42c9a3829adbc.tar
cuberite-a42480cf8266a1e066209823aab42c9a3829adbc.tar.gz
cuberite-a42480cf8266a1e066209823aab42c9a3829adbc.tar.bz2
cuberite-a42480cf8266a1e066209823aab42c9a3829adbc.tar.lz
cuberite-a42480cf8266a1e066209823aab42c9a3829adbc.tar.xz
cuberite-a42480cf8266a1e066209823aab42c9a3829adbc.tar.zst
cuberite-a42480cf8266a1e066209823aab42c9a3829adbc.zip
Diffstat (limited to 'src/OSSupport/File.h')
-rw-r--r--src/OSSupport/File.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/OSSupport/File.h b/src/OSSupport/File.h
index b394c5cb9..2a7ecf0ed 100644
--- a/src/OSSupport/File.h
+++ b/src/OSSupport/File.h
@@ -80,10 +80,10 @@ public:
bool IsEOF(void) const;
/** Reads up to iNumBytes bytes into iBuffer, returns the number of bytes actually read, or -1 on failure; asserts if not open */
- int Read (void * iBuffer, int iNumBytes);
+ int Read (void * iBuffer, size_t iNumBytes);
/** Writes up to iNumBytes bytes from iBuffer, returns the number of bytes actually written, or -1 on failure; asserts if not open */
- int Write(const void * iBuffer, int iNumBytes);
+ int Write(const void * iBuffer, size_t iNumBytes);
/** Seeks to iPosition bytes from file start, returns old position or -1 for failure; asserts if not open */
int Seek (int iPosition);