Skip to content

Commit

Permalink
Fix a type mismatch warning
Browse files Browse the repository at this point in the history
  • Loading branch information
ddemidov committed Nov 13, 2018
1 parent 3febe68 commit 597f11a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion amgcl/util.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ inline std::string human_readable_memory(size_t bytes) {

int i = 0;
double m = bytes;
for(; i < 4 && m >= 1024; ++i, m /= 1024);
for(; i < 4 && m >= 1024.0; ++i, m /= 1024.0);

std::ostringstream s;
s << std::fixed << std::setprecision(2) << m << " " << suffix[i];
Expand Down

0 comments on commit 597f11a

Please sign in to comment.