Fix calculation of line number

Do not print error message for positive line numbers.
Merge pull request #2 from jspam/patch-1

Fix calculation of line number