Browse Source

Compile warning fix.

accumulation-v4.7
Dave Parker 7 years ago
parent
commit
39d83fafea
  1. 3
      prism/src/sparse/PS_NondetMultiObjGS.cc

3
prism/src/sparse/PS_NondetMultiObjGS.cc

@ -379,9 +379,10 @@ JNIEXPORT jdoubleArray __jlongpointer JNICALL Java_sparse_PrismSparse_PS_1Nondet
double val_yes = 0.0;
for (int probi = 0; probi < lenProb; probi++) {
if (probi != ignoredWeight && yes_vec[probi]!=NULL);
if (probi != ignoredWeight && yes_vec[probi]!=NULL) {
val_yes += weights[probi] * yes_vec[probi][i];
}
}
//TODO: we need to handle val_yes somehow
if (val_yes == 0 || d1>val_yes)

Loading…
Cancel
Save