mirror of https://github.com/BOINC/boinc.git
Fx a compiler warning
svn path=/trunk/boinc/; revision=13545
This commit is contained in:
parent
ea72513b12
commit
902b5a4597
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue