Prevent a divide-by-0 error in ftrsd2.c.

This commit is contained in:
k9an 2021-04-26 08:08:27 -05:00
parent 56450e1806
commit b3d15ea0c6
2 changed files with 3 additions and 3 deletions

View File

@ -203,7 +203,7 @@ NB: j is the symbol-vector index of the symbol with rank i.
param[1]=nhard_min; param[1]=nhard_min;
param[2]=nsoft_min; param[2]=nsoft_min;
param[3]=nera_best; param[3]=nera_best;
param[4]=1000.0*pp2/pp1; param[4]= pp1 > 0 ? 1000.0*pp2/pp1 : 1000.0;
param[5]=ntotal_min; param[5]=ntotal_min;
param[6]=ntry[0]; param[6]=ntry[0];
param[7]=1000.0*pp2; param[7]=1000.0*pp2;

View File

@ -203,7 +203,7 @@ NB: j is the symbol-vector index of the symbol with rank i.
param[1]=nhard_min; param[1]=nhard_min;
param[2]=nsoft_min; param[2]=nsoft_min;
param[3]=nera_best; param[3]=nera_best;
param[4]=1000.0*pp2/pp1; param[4]= pp1 > 0 ? 1000.0*pp2/pp1 : 1000.0;
param[5]=ntotal_min; param[5]=ntotal_min;
param[6]=ntry[0]; param[6]=ntry[0];
param[7]=1000.0*pp2; param[7]=1000.0*pp2;