git://git.novaco.in
/
novacoin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
5eacad2
)
Fix msvc c4267 warning
238/head
author
svost
<ya.nowa@yandex.ru>
Fri, 25 Sep 2015 20:13:31 +0000 (23:13 +0300)
committer
svost
<ya.nowa@yandex.ru>
Fri, 25 Sep 2015 20:13:31 +0000 (23:13 +0300)
src/util.cpp
patch
|
blob
|
history
diff --git
a/src/util.cpp
b/src/util.cpp
index
d434c81
..
2f28b95
100644
(file)
--- a/
src/util.cpp
+++ b/
src/util.cpp
@@
-1272,7
+1272,7
@@
void ShrinkDebugFile()
// Restart the file with some of the end
char pch[200000];
fseek(file, -((long long)sizeof(pch)), SEEK_END);
- int nBytes = fread(pch, 1, sizeof(pch), file);
+ size_t nBytes = fread(pch, 1, sizeof(pch), file);
fclose(file);
file = fopen(pathLog.string().c_str(), "w");