-
Notifications
You must be signed in to change notification settings - Fork 30
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
++ (and --) not supported on non-basic types #259
Comments
Are you using comitters as a |
@neoblizz if you are using a map, you have to be sure the map contains the key you are trying to read before using that value. Otherwise the value is undefined, and it leads to problems later. Code like this is much safer for reading a value from a map: |
This particular bug is specifically regarding the crash when using |
@psybers and just to clarify, the default value is optional there, correct? So, if I wanted to get the value at k, I could just do |
@neoblizz no it is required. The default is what the |
I am trying to run this code, It can't be compiled and the status is just "Error" without any help messages.
Job Reference: http://boa.cs.iastate.edu/boa/?q=boa/job/82449
Robert informed me that the bug is in this line
committers[node.author.username]++;
and he suggests to change it to 'committers[node.author.username] = 1 + lookup(committers, node.author.username, 0);'Thanks,
Moustafa
The text was updated successfully, but these errors were encountered: