aboutsummaryrefslogtreecommitdiff
path: root/src/util.cpp
diff options
context:
space:
mode:
authorPieter Wuille <[email protected]>2014-09-16 04:43:49 +0200
committerPieter Wuille <[email protected]>2014-09-16 04:47:55 +0200
commitdc54e9db982118ec71cc11b8d027e5a569810cba (patch)
tree34b0ca1ab9f4c153a551750dae6fea3b2dbf286a /src/util.cpp
parentMerge pull request #4911 (diff)
parentFixing compiler warning C4800: 'type' forcing value to bool 'true' or 'false' (diff)
downloaddiscoin-dc54e9db982118ec71cc11b8d027e5a569810cba.tar.xz
discoin-dc54e9db982118ec71cc11b8d027e5a569810cba.zip
Merge pull request #4825
8d657a6 Fixing compiler warning C4800: 'type' forcing value to bool 'true' or 'false' (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 20aff49c8..0ac0f70a7 100644
--- a/src/util.cpp
+++ b/src/util.cpp
@@ -495,7 +495,7 @@ bool RenameOver(boost::filesystem::path src, boost::filesystem::path dest)
{
#ifdef WIN32
return MoveFileExA(src.string().c_str(), dest.string().c_str(),
- MOVEFILE_REPLACE_EXISTING);
+ MOVEFILE_REPLACE_EXISTING) != 0;
#else
int rc = std::rename(src.string().c_str(), dest.string().c_str());
return (rc == 0);