* first looks for '<' and advances to the next character,
* it looks for a number between 0 and 9 and advances to the next
character, (it finds 7)
* it looks for '>' and advances to the next character,
* it looks for a number between 0 and 9 and advances to the next
character, (it finds the '2' of '2010')
=> result: prio is 72 instead of 7.
The code that checks if the character is '>' should be outside the loop
that checks if the character is a number. The attached patch moves this
check.