aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_basic
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2018-10-26 22:41:21 +0200
committerRiccardo Spagni <ric@spagni.net>2018-10-26 22:41:21 +0200
commit20d3605a543199e3f9c58d93ac4eab6bf2406e2b (patch)
treeee24b9dda4ac256c64a6f0518658ff93e4c78a66 /src/cryptonote_basic
parentMerge pull request #4679 (diff)
parentminer: fix build with boost 1.69 (diff)
downloadmonero-20d3605a543199e3f9c58d93ac4eab6bf2406e2b.tar.xz
Merge pull request #4700
3bb4b0d4 miner: fix build with boost 1.69 (moneromooo-monero)
Diffstat (limited to 'src/cryptonote_basic')
-rw-r--r--src/cryptonote_basic/miner.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cryptonote_basic/miner.cpp b/src/cryptonote_basic/miner.cpp
index d0b03593e..d8ca2dd35 100644
--- a/src/cryptonote_basic/miner.cpp
+++ b/src/cryptonote_basic/miner.cpp
@@ -637,7 +637,7 @@ namespace cryptonote
boost::tribool battery_powered(on_battery_power());
if(!indeterminate( battery_powered ))
{
- on_ac_power = !battery_powered;
+ on_ac_power = !(bool)battery_powered;
}
}