Skip to content

Check for unused result in calculation simulator/main.cpp : 5411 #122

@studiofuga

Description

@studiofuga

This line:

for (unsigned int icl=0; icl <tariff_pop.size();++icl)
                {
                    arbitary_breaks_for_tariff.at(icl) * fmultiplier;
                }

calculates a multiplication but doesn't store the result.
Perhaps it should read:

                    arbitary_breaks_for_tariff.at(icl) *= fmultiplier;

Metadata

Metadata

Assignees

Labels

Code ReviewCode needing review (Warning, code smells)

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions