aboutsummaryrefslogtreecommitdiff
path: root/src/util.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <[email protected]>2014-09-25 15:25:30 +0200
committerWladimir J. van der Laan <[email protected]>2014-09-25 15:25:32 +0200
commitf66f986a25e1949d78a3b4991434465bc9d7eba3 (patch)
tree8d1107667889fb581280045b7da1c64618798246 /src/util.cpp
parentMerge pull request #4968 (diff)
parentFixing C4146 warning (diff)
downloaddiscoin-f66f986a25e1949d78a3b4991434465bc9d7eba3.tar.xz
discoin-f66f986a25e1949d78a3b4991434465bc9d7eba3.zip
Merge pull request #4823
1e73504 Fixing C4146 warning (ENikS)
Diffstat (limited to 'src/util.cpp')
-rw-r--r--src/util.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.cpp b/src/util.cpp
index f387fce8c..632d0965b 100644
--- a/src/util.cpp
+++ b/src/util.cpp
@@ -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);