the static analyzer didn't like a float being used as a counter in a for-loop. Just change it to a while-loop.