Understanding state machine example

Long int constants are used to initialize (not-long) int variables.

Thanks for the catch on that. I've changed them to long.