[libbluray-devel] cast file read/write result to size_t

Ian Curtis git at videolan.org
Thu Apr 11 23:30:38 CEST 2013


libbluray | branch: master | Ian Curtis <i.curtis at gmail.com> | Fri Apr 12 00:24:29 2013 +0300| [a8b18b411f25ff55f40cc6cb2517efada2a6a9d3] | committer: hpi1

cast file read/write result to size_t

> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=a8b18b411f25ff55f40cc6cb2517efada2a6a9d3
---

 src/file/file.h |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/file/file.h b/src/file/file.h
index cad5d54..080485b 100644
--- a/src/file/file.h
+++ b/src/file/file.h
@@ -39,8 +39,8 @@
 #define file_seek(X,Y,Z) X->seek(X,Y,Z)
 #define file_tell(X) X->tell(X)
 #define file_eof(X) X->eof(X)
-#define file_read(X,Y,Z) X->read(X,Y,Z)
-#define file_write(X,Y,Z) X->write(X,Y,Z)
+#define file_read(X,Y,Z) (size_t)X->read(X,Y,Z)
+#define file_write(X,Y,Z) (size_t)X->write(X,Y,Z)
 
 BD_PRIVATE extern BD_FILE_H* (*file_open)(const char* filename, const char *mode);
 



More information about the libbluray-devel mailing list