|
for (i = 0; i <= numpmid; i++) { |
|
unsigned int cluster = pmID_cluster(pmidlist[i]); |
|
unsigned int item = pmID_item(pmidlist[i]); |
it appears to me that this pmidlist array has numpmid elements, so it should go from 0 to numpmid-1, while it uses <= here. many other for loops in that code are using < instead. is this a fencepost error?
pcp/src/pmdas/amdgpu/amdgpu.c
Lines 356 to 358 in 7338e8a
it appears to me that this
pmidlistarray hasnumpmidelements, so it should go from 0 to numpmid-1, while it uses<=here. many other for loops in that code are using<instead. is this a fencepost error?