Possible bug in bp2ncd utility
Opened this issue · 1 comments
khou2020 commented
Hi:
I found some strange code in the bp2ncd utility. In line 407 of np2ncd.c
if (i==var_dims_count) {
I can't find where variable "i" is initialized. Should it be included in the else clause on line 376?
pnorbert commented
You are right, something is illogical there.
I would assume there should be an i = 0;
after line 359 because the true branch starting at line 360 does not set i
. The false branch does with the for loop.