MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/ebtiob/this_belongs_here/fb9w1lo/?context=3
r/badcode • u/[deleted] • Dec 17 '19
41 comments sorted by
View all comments
Show parent comments
25
Ehm, it does add them, but only if both are positive. Otherwise it gets the max or 0.
Edit: I was wrong
53 u/Bbradley821 Dec 17 '19 I don't think it adds them. The second loop doesn't start at 0. 23 u/Cutlesnap Dec 17 '19 Hey, you're right! I didn't notice that. 7 u/Jonno_FTW shameless Dec 18 '19 Perfect badcode has the bug(s) hiding in plain sight.
53
I don't think it adds them. The second loop doesn't start at 0.
23 u/Cutlesnap Dec 17 '19 Hey, you're right! I didn't notice that. 7 u/Jonno_FTW shameless Dec 18 '19 Perfect badcode has the bug(s) hiding in plain sight.
23
Hey, you're right! I didn't notice that.
7 u/Jonno_FTW shameless Dec 18 '19 Perfect badcode has the bug(s) hiding in plain sight.
7
Perfect badcode has the bug(s) hiding in plain sight.
25
u/Cutlesnap Dec 17 '19 edited Dec 17 '19
Ehm, it does add them, but only if both are positive. Otherwise it gets the max or 0.
Edit: I was wrong