Fix int64 parsing

`errno` does not get reset on calls of `sscanf`, if there are no issues. So if we get an `ERANGE` once, all consecutive parses will fail with an `ERANGE`.