How to handle the variable in the task

In reply to zz8318:

Please use code tags to make your code easier to read. I have added them to your post.

count-- evaluates count first, then decrements. --count would decrement count first then evaluate. Whith your code I would expect count=='hFFFFFFFF if the break condition is not hit.