-
Notifications
You must be signed in to change notification settings - Fork 59
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
tick() crashes if called before inc() #11
Comments
(yes I'm using master) |
hfiguiere
added a commit
to hfiguiere/pb
that referenced
this issue
May 15, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The following test
Causes a panic.
I'm not asserting the test is right, but wrong API use should cause a panic
This is because
curr_count
is 0 and we try to subtract 1.Calling
pb.inc()
as indicated in the documentation make this not crash.The text was updated successfully, but these errors were encountered: