Skip to content
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

Reduce warning by changing type of NC_OBJ.id. #2781

Merged
merged 4 commits into from
Dec 19, 2023

Conversation

DennisHeimbigner
Copy link
Collaborator

@DennisHeimbigner DennisHeimbigner commented Oct 25, 2023

re: Issue #2780

As noted in the above issue, changing the NC_OBJ.id field type from size_t to int reduces irrelevant warning. There is no semantic effect since the number of distinct ids will never approach the max positive integer value. Note that this could change in the future if the id becomes more than a simple counter.

re: Unidata#2780

As noted in the above issue, changing the NC_OBJ.id field
type from size_t to int reduces irrelevant warning.
There is no semantic effect since the number of distinct ids
will never approach the max positive integer value.
Note that this could change in the future if the id becomes
more than a simple counter.
@ZedThree
Copy link
Contributor

There is no semantic effect since the number of distinct ids will never approach the max positive integer value

Yep, and as the public API uses int for all IDs, it's already the case that files with more than $2^32$ variables will have invalid (user-visible) IDs.

WardF
WardF previously approved these changes Dec 18, 2023
@WardF
Copy link
Member

WardF commented Dec 19, 2023

@DennisHeimbigner I don't have a cygwin environment immediately available, but the failures in Cygwin appear to be repeatable. Any idea at a glance what might be happening?

@DennisHeimbigner
Copy link
Collaborator Author

I re-ran the failed tests and they worked the second time.
I have noticed this kind of flaky behavior a number of times.
Cannot figure out the cause.

@WardF WardF merged commit b534fe3 into Unidata:main Dec 19, 2023
99 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants