Fix integer overflow for very long lines.