We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6148111 commit 2998918Copy full SHA for 2998918
src/higher-level/index-hl.c
@@ -169,7 +169,7 @@ float ind, scale = 10000.0;
169
if (!ard[t].msk[p]){
170
ts->tss_[t][p] = nodata;
171
} else {
172
- ind = (ard[t].dat[b1][p]/ard[t].dat[b2][p])-1;
+ ind = (ard[t].dat[b1][p] / (float)ard[t].dat[b2][p]) - 1.0;
173
if (ard[t].dat[b2][p] == 0 || ind*scale > SHRT_MAX || ind*scale < SHRT_MIN){
174
175
0 commit comments