mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-07 19:22:17 +01:00
Fixing C4146 warning
Rebased-By: Wladimir J. van der Laan <laanwj@gmail.com>
This commit is contained in:
committed by
Wladimir J. van der Laan
parent
b50e5fe099
commit
1e73504865
@@ -618,7 +618,7 @@ void ShrinkDebugFile()
|
||||
{
|
||||
// Restart the file with some of the end
|
||||
std::vector <char> vch(200000,0);
|
||||
fseek(file, -vch.size(), SEEK_END);
|
||||
fseek(file, -((long)vch.size()), SEEK_END);
|
||||
int nBytes = fread(begin_ptr(vch), 1, vch.size(), file);
|
||||
fclose(file);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user