git://git.novaco.in
/
novacoin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
b2a7222
)
Fix MSVC C4146 warning.
214/head
author
svost
<ya.nowa@yandex.ru>
Wed, 22 Apr 2015 13:32:19 +0000 (16:32 +0300)
committer
svost
<ya.nowa@yandex.ru>
Wed, 22 Apr 2015 13:37:57 +0000 (16:37 +0300)
src/util.cpp
patch
|
blob
|
history
diff --git
a/src/util.cpp
b/src/util.cpp
index
8cc62eb
..
f4d229e
100644
(file)
--- a/
src/util.cpp
+++ b/
src/util.cpp
@@
-1271,7
+1271,7
@@
void ShrinkDebugFile()
{
// Restart the file with some of the end
char pch[200000];
- fseek(file, (long long)-sizeof(pch), SEEK_END);
+ fseek(file, -((long long)sizeof(pch)), SEEK_END);
int nBytes = fread(pch, 1, sizeof(pch), file);
fclose(file);