summaryrefslogtreecommitdiff
path: root/tools.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2009-01-16 14:31:26 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2009-01-16 14:31:26 +0100
commit0c5374ce7dbba7e0c527e61ae68e87ad5a61b20a (patch)
tree04771d1975353b0331648c7f2b1606b7570ccacb /tools.c
parent970622ccf294ce3ce34f230b163bf3ef9464019d (diff)
downloadvdr-0c5374ce7dbba7e0c527e61ae68e87ad5a61b20a.tar.gz
vdr-0c5374ce7dbba7e0c527e61ae68e87ad5a61b20a.tar.bz2
Added a typecast in cUnbufferedFile::Write() to avoid an error message when compiling on 64 bit systems
Diffstat (limited to 'tools.c')
-rw-r--r--tools.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools.c b/tools.c
index ef06794f..f49206f0 100644
--- a/tools.c
+++ b/tools.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: tools.c 2.1 2009/01/05 13:04:10 kls Exp $
+ * $Id: tools.c 2.2 2009/01/16 14:29:08 kls Exp $
*/
#include "tools.h"
@@ -1608,7 +1608,7 @@ ssize_t cUnbufferedFile::Write(const void *Data, size_t Size)
// kind of write gathering enabled), but the syncs cause (io) load..
// Uncomment the next line if you think you need them.
//fdatasync(fd);
- off_t headdrop = min(curpos - totwritten, off_t(totwritten * 2));
+ off_t headdrop = min(off_t(curpos - totwritten), off_t(totwritten * 2));
posix_fadvise(fd, curpos - totwritten - headdrop, totwritten + headdrop, POSIX_FADV_DONTNEED);
totwritten = 0;
}