Skip to content
New issue

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

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

Already on GitHub? # to your account

Here is a bug which should be if(i<=0) instead of if(x<=0) #109

Closed
VCode28629 opened this issue Jul 15, 2022 · 1 comment
Closed

Here is a bug which should be if(i<=0) instead of if(x<=0) #109

VCode28629 opened this issue Jul 15, 2022 · 1 comment

Comments

@VCode28629
Copy link

t& operator[](const int i) { if (x<=0) return x; else return y; }

@ssloy
Copy link
Owner

ssloy commented Feb 21, 2025

yeah, this was a blatant bug, but fixed 10 years ago :)

@ssloy ssloy closed this as completed Feb 21, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@ssloy @VCode28629 and others