Skip to content

Commit

Permalink
fix type warning
Browse files Browse the repository at this point in the history
  • Loading branch information
felixguendling committed Apr 10, 2024
1 parent 67414c9 commit 930d194
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/utl/pipes/avg.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ struct avg_t {
++count;
r.next(it);
}
return sum / static_cast<double>(count);
return static_cast<double>(sum) / static_cast<double>(count);
}
};

Expand Down

0 comments on commit 930d194

Please sign in to comment.