Skip to content
Snippets Groups Projects
Commit e42d348c authored by Jan Travnicek's avatar Jan Travnicek Committed by Jan Trávníček
Browse files

make bool to int cast explicit

parent 9fef919c
No related branches found
No related tags found
1 merge request!95Many clang-tidy fixes
...@@ -117,7 +117,7 @@ struct compare < bool > { ...@@ -117,7 +117,7 @@ struct compare < bool > {
* \return negative value of left < right, positive value if left > right, zero if left == right * \return negative value of left < right, positive value if left > right, zero if left == right
*/ */
int operator ( ) ( bool first, bool second ) const { int operator ( ) ( bool first, bool second ) const {
return first - second; return static_cast < int > ( first ) - static_cast < int > ( second );
} }
}; };
   
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment