Hacker News new | ask | show | jobs
by rbanffy 35 days ago
If you pass a negative number as a string to a function that converts strings representing positive numbers into positive long integers, then yes, it should return an error status instead of the wrong result.
1 comments

Ah, I misunderstood what you meant by "is an error". Agree.