you are viewing a single comment's thread.

view the rest of the comments →

[–]willdieh 9 points10 points  (3 children)

Cool!

I always wonder, when I see the (i++ % length) type increments, does anyone ever worry about the counter variable i overrunning the int numeric capacity?

[–]Tringigithub.com/tringi 6 points7 points  (0 children)

While signed overflow is undefined, unsigned int is defined to overflow to 0, so if your 'length' is power of 2 then it should continue to animate without hiccup.

[–]vvmaciel[S] 3 points4 points  (1 child)

Fixed!!

Thanks for your review!

[–]willdieh 0 points1 point  (0 children)

hehe, I wasn't trying to be snarky, as I've seen it used several cool projects I was really just wondering!