Skip to content

Commit

Permalink
Explicit size_t for vstudio
Browse files Browse the repository at this point in the history
  • Loading branch information
Coolthulhu committed Nov 17, 2024
1 parent d430d1f commit cc2e9e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/magic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -871,7 +871,7 @@ std::string spell::energy_cost_string( const Character &guy ) const
}
if( energy_source() == hp_energy ) {
auto pair = get_hp_bar( energy_cost( guy ), guy.get_hp_max() /
std::max( 1lu, guy.get_all_body_parts( true ).size() ) );
std::max<size_t>( 1lu, guy.get_all_body_parts( true ).size() ) );

Check warning on line 874 in src/magic.cpp

View workflow job for this annotation

GitHub Actions / build

integer literal has suffix 'lu', which is not uppercase [cert-dcl16-c]
return colorize( pair.first, pair.second );
}
if( energy_source() == stamina_energy ) {
Expand Down

0 comments on commit cc2e9e6

Please sign in to comment.