-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
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
regression(0.18.0 => devel): import times; echo low(Time)
gives OverflowDefect
#16264
Labels
Comments
bung87
added a commit
to bung87/Nim
that referenced
this issue
Oct 12, 2022
…w(Time) gives OverflowDefect
Araq
pushed a commit
that referenced
this issue
Oct 29, 2022
capocasa
pushed a commit
to capocasa/Nim
that referenced
this issue
Mar 31, 2023
fix nim-lang#16264 regression(0.18.0 => devel): import times; echo low(Time) gives OverflowDefect
narimiran
pushed a commit
that referenced
this issue
Apr 25, 2023
narimiran
pushed a commit
that referenced
this issue
Apr 25, 2023
narimiran
pushed a commit
that referenced
this issue
Apr 25, 2023
bung87
added a commit
to bung87/Nim
that referenced
this issue
Jul 29, 2023
fix nim-lang#16264 regression(0.18.0 => devel): import times; echo low(Time) gives OverflowDefect
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
regression:
import times; echo low(Time)
gives OverflowDefectExample
Current Output
/Users/timothee/git_clone/nim/timn/tests/nim/all/t11448.nim(6) t11448
/Users/timothee/git_clone/nim/Nim_devel/lib/pure/times.nim(2152) $
/Users/timothee/git_clone/nim/Nim_devel/lib/pure/times.nim(1318) local
/Users/timothee/git_clone/nim/Nim_devel/lib/pure/times.nim(1175) inZone
/Users/timothee/git_clone/nim/Nim_devel/lib/pure/times.nim(1081) initDateTime
/Users/timothee/git_clone/nim/Nim_devel/lib/system/fatal.nim(49) sysFatal
Error: unhandled exception: over- or underflow [OverflowDefect]
Expected Output
works
Additional Information
found this while debugging HCR issues, which uses
low(Time)
as initial valueEDIT: I found this code in nimhcr:
that may be related, in which case it should probably be fixed in PR that fixes this
The text was updated successfully, but these errors were encountered: