Change a variable type to avoid signed overflow; replace repeated '19999' constant by a define.
Change a variable type to avoid signed overflow; replace repeated '19999' constant by a define.

sk-/python2.7-type-annotator,sk-/python2.7-type-annotator,sk-/python2.7-type-annotator