Skip to content

Commit

Permalink
Merge branch 'master' of github.com:motis-project/utl
Browse files Browse the repository at this point in the history
  • Loading branch information
felixguendling committed Apr 10, 2024
2 parents b83c0af + 930d194 commit 4c1503a
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 4c1503a

Please sign in to comment.