aboutsummaryrefslogtreecommitdiff
path: root/src/util.cpp
diff options
context:
space:
mode:
authorENikS <evgeni@eniks.com>2014-09-02 17:36:45 -0400
committerWladimir J. van der Laan <laanwj@gmail.com>2014-09-25 15:24:36 +0200
commit1e7350486582fafc651d07a43d209d30eaaef1d7 (patch)
tree8d1107667889fb581280045b7da1c64618798246 /src/util.cpp
parentb50e5fe099b3e9d8ece46b239ce930750df2120e (diff)
Fixing C4146 warning
Rebased-By: Wladimir J. van der Laan <laanwj@gmail.com>
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 f387fce8c7..632d0965bf 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);