-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Remove undefined behavior from npy_datetimestruct_to_datetime #55151
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
Merged
Merged
Changes from 44 commits
Commits
Show all changes
46 commits
Select commit
Hold shift + click to select a range
e27a0da
refactor npy_datetimestruct_to_datetime
WillAyd 0dea606
Used builtin overflow directives
WillAyd d6a24f3
macro fixups
WillAyd 21e919c
more macro cleanups
WillAyd 6302f2f
more macro refactor
WillAyd e2646a6
musllinux c support
WillAyd 5852d20
Merge remote-tracking branch 'upstream/main' into refactor-np-datetime
WillAyd f55a58a
macro cleanup
WillAyd 057e74f
more refactor
WillAyd 2d6d5fc
fix cython warning
WillAyd e65e229
windows fix
WillAyd af29e7c
Raise Outofboundsdatetime
WillAyd b69b489
Merge remote-tracking branch 'upstream/main' into refactor-np-datetime
WillAyd f9e5e35
cleanup GIL warnings
WillAyd 1b89dfe
more error handling cleanup
WillAyd 73a1507
updates
WillAyd ef24509
error message update
WillAyd 2240b09
error fixups
WillAyd 1640002
test fixup
WillAyd 9cdb9c9
clang-format
WillAyd 9e0cec0
Merge branch 'main' into refactor-np-datetime
WillAyd 25f3edf
Merge branch 'main' into refactor-np-datetime
WillAyd 5c09a13
Merge branch 'main' into refactor-np-datetime
WillAyd 4d8696c
updates
WillAyd b3d5b7c
fixed error message
WillAyd 2f60947
try nogil
WillAyd f26c924
Merge remote-tracking branch 'upstream/main' into refactor-np-datetime
WillAyd 03315fc
revert offsets changes
WillAyd b3a80b4
simplified error handling
WillAyd 038db5f
period fixup
WillAyd df2a4df
fixed test failure
WillAyd 1afb12d
try speedup
WillAyd e293642
updated benchmark
WillAyd 2203421
Merge remote-tracking branch 'upstream/main' into refactor-np-datetime
WillAyd 7ee90dd
revert noexcepts
WillAyd 81f32a9
Merge remote-tracking branch 'upstream/main' into refactor-np-datetime
WillAyd 8d918dc
Merge branch 'main' into refactor-np-datetime
WillAyd 7e8571f
Merge remote-tracking branch 'upstream/main' into refactor-np-datetime
WillAyd 07e8106
Merge branch 'main' into refactor-np-datetime
WillAyd eab64ac
shared function for dts formatting
WillAyd 7fbd191
import -> cimport
WillAyd 4eba919
pass address
WillAyd 9e1914d
typo
WillAyd 188eb10
Merge branch 'main' into refactor-np-datetime
WillAyd 162c858
remove comment
WillAyd de90a2f
cdef object -> str
WillAyd File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI C23 has the
<stdckdint.h>
header which should replace these macros in a few years when that becomes widely available