Skip to content

Check on arc->cap_upper_bound_ is done in ChangeArc, this should have been in AddArc #32

@shivramsrivastava

Description

@shivramsrivastava

There is arc->cap_upper_bound_ in change arc function "CHECK_GE(arc->cap_upper_bound_, 0); "
this check should have been done in AddArc function before adding this value to the arc.

In current function we can have same check on incoming value to check the validity of incoming value cap_upper_bound like CHECK_GE(cap_upper_bound, 0);.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions