Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
shivramsrivastava opened this issue Jan 28, 2019 · 0 comments

Comments

@shivramsrivastava
Copy link

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);.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant