Skip to content

Commit

Permalink
fixup previous commit
Browse files Browse the repository at this point in the history
(bool) ptr -> static_cast<bool> (ptr)
  • Loading branch information
cbeck88 committed Jun 19, 2014
1 parent a570e5b commit 184ea58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/unit_map.hpp
Expand Up @@ -228,7 +228,7 @@ class unit_map {

bool valid() const {
if(valid_for_dereference()) {
return bool (i_->second.unit);
return static_cast<bool> (i_->second.unit);
}
return false;
}
Expand Down

0 comments on commit 184ea58

Please sign in to comment.