-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
[BLD] Fix remaining compile-time warnings #21940
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
Changes from all commits
745e08a
169a500
9f56136
1ad0516
f23802c
99753ed
5006cd8
afb2889
816420e
64d0032
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -271,7 +271,12 @@ def ismember_{{dtype}}({{scalar}}[:] arr, {{scalar}}[:] values, bint hasnans=0): | |
if k != table.n_buckets: | ||
result[i] = 1 | ||
else: | ||
{{if dtype == 'float64'}} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same |
||
result[i] = hasnans and npy_isnan(val) | ||
{{else}} | ||
result[i] = hasnans and val != val | ||
{{endif}} | ||
|
||
{{endif}} | ||
|
||
kh_destroy_{{ttype}}(table) | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,6 +28,15 @@ This file is derived from NumPy 1.7. See NUMPY_LICENSE.txt | |
#define PyInt_AsLong PyLong_AsLong | ||
#endif | ||
|
||
// Silence "implicit declaration of function" warnings | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. shouldn't these be in the .h? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No, that would make them public. This particular fix will be superseded by #21962 anyway. |
||
int convert_datetimestruct_to_datetime(NPY_DATETIMEUNIT base, | ||
const npy_datetimestruct *dts, | ||
npy_datetime *out); | ||
int convert_timedelta_to_timedeltastruct(NPY_DATETIMEUNIT base, | ||
npy_timedelta td, | ||
pandas_timedeltastruct *out); | ||
|
||
|
||
const npy_datetimestruct _NS_MIN_DTS = { | ||
1677, 9, 21, 0, 12, 43, 145225, 0, 0}; | ||
const npy_datetimestruct _NS_MAX_DTS = { | ||
|
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.
maybe .startswith