This might not be the answer youre looking for, but using != max is a bit dangerous.
If max gets set to a value other than an integer, or the comparison fails to catch the exit condition, which might be easy to do, this is an infinite loop.
Safer practice would be <=max_type
__________________
Quitters never win, and winners never quit, but those who never win and never quit are idiots.
|