Skip to content

Commit

Permalink
Merge pull request #6501 from whalley/master
Browse files Browse the repository at this point in the history
fix(#5685): fix cast
  • Loading branch information
whalley committed Feb 1, 2024
2 parents c836db5 + 4a80e0c commit 3b42ed3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/reports/transactions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ table {

if (chart > -1)
{
double value_chart = std::accumulate(total_in_base_curr.begin(), total_in_base_curr.end(), (double)0,
double value_chart = std::accumulate(total_in_base_curr.begin(), total_in_base_curr.end(), static_cast<double>(0),
[](const double previous, decltype(*total_in_base_curr.begin()) p) { return previous + p.second; });
values_chart[lastSortLabel] += value_chart;
}
Expand Down

0 comments on commit 3b42ed3

Please sign in to comment.