In this case, the errno error handling did not work correctly, as internal functions where accidently setting it, although no overflow happens. Fixes #1249.