We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(add-time )
The add-time function can overflow and give unexpected results.
add-time
Some examples:
pact> (add-time (time "2016-07-22T12:00:00Z") 10000000000000000000000000000000000) "-157918-10-27T19:13:49Z" pact> (add-time (time "2016-07-22T12:00:00Z") 1000000000000000000000000000000000000000000000000000000000000000000000000) "2016-07-22T12:00:00Z"
As you can see in some cases:
Either:
The text was updated successfully, but these errors were encountered:
@CryptoPascal31 thank you, we will look into it
Sorry, something went wrong.
No branches or pull requests
Issue description
The
add-time
function can overflow and give unexpected results.Steps to reproduce
Some examples:
As you can see in some cases:
Expected Behavior
Either:
add-time
as "unsafe" without prior boundaries check.The text was updated successfully, but these errors were encountered: