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
Looking at the code of NetCDF-C 4.7.2 (commit 108e938) I noticed that NCDISPATCH_initialize() contains the following:
NCDISPATCH_initialize()
{ size_t* c0 = (size_t*)NC_coord_zero; size_t* c1 = (size_t*)NC_coord_one; ptrdiff_t* s1 = (ptrdiff_t*)NC_stride_one; for(i=0;i<NC_MAX_VAR_DIMS;i++) { c0[0] = 0; c1[i] = 1; s1[i] = 1; } }
I suspect that c0[0] above should be replaced by c0[i]. This code was introduced by #1379.
c0[0]
c0[i]
Please feel free to close this if the code quoted above is correct as it stands.
The text was updated successfully, but these errors were encountered:
I believe you are correct, and I am tagging in @DennisHeimbigner just to confirm.
Sorry, something went wrong.
You are correct, although it may have overtaken by a later change,
Not in the master branch - I checked before I opened this issue.
master
Note, though, that c0, c1, and s1 should also be removed now that there's no need cast away const (see #1486 and #1495).
c0
c1
s1
const
Fix NC_coord_zero indexing in NCDISPATCH_initialize()
91d3a89
Fixes Unidata#1518.
WardF
Successfully merging a pull request may close this issue.
Looking at the code of NetCDF-C 4.7.2 (commit 108e938) I noticed that
NCDISPATCH_initialize()
contains the following:I suspect that
c0[0]
above should be replaced byc0[i]
. This code was introduced by #1379.Please feel free to close this if the code quoted above is correct as it stands.
The text was updated successfully, but these errors were encountered: