From 902b5a459781496c1d0a416d3da24808527be179 Mon Sep 17 00:00:00 2001 From: Charlie Fenton Date: Wed, 5 Sep 2007 11:12:32 +0000 Subject: [PATCH] Fx a compiler warning svn path=/trunk/boinc/; revision=13545 --- lib/util.C | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/util.C b/lib/util.C index 07527bd411..470b72717d 100755 --- a/lib/util.C +++ b/lib/util.C @@ -485,7 +485,7 @@ int read_file_malloc(const char* path, char*& buf, int max_len, bool tail) { if (max_len && size > max_len) { if (tail) { - fseek(f, size-max_len, SEEK_SET); + fseek(f, (long)size-max_len, SEEK_SET); } size = max_len; }