From 5f7ff4e762642470f0ef5cbd43163bb0528baa79 Mon Sep 17 00:00:00 2001 From: Dave Parker Date: Thu, 20 Dec 2012 12:39:45 +0000 Subject: [PATCH] Compile fix (for Windows). git-svn-id: https://www.prismmodelchecker.org/svn/prism/prism/trunk@6248 bbc10eb1-c90d-0410-af57-cb519fbb1720 --- prism/src/sparse/PS_NondetMultiObjGS.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/prism/src/sparse/PS_NondetMultiObjGS.cc b/prism/src/sparse/PS_NondetMultiObjGS.cc index 812a88db..7d18607f 100644 --- a/prism/src/sparse/PS_NondetMultiObjGS.cc +++ b/prism/src/sparse/PS_NondetMultiObjGS.cc @@ -174,8 +174,8 @@ JNIEXPORT jdoubleArray __jlongpointer JNICALL Java_sparse_PrismSparse_PS_1Nondet double* weights = env->GetDoubleArrayElements(_weights, 0); - int* step_bounds_r = (has_rewards) ? env->GetIntArrayElements(_ndsm_r_step_bounds, 0) : NULL; - int* step_bounds = (has_yes_vec) ? env->GetIntArrayElements(_prob_step_bounds, 0) : NULL; + int* step_bounds_r = (has_rewards) ? (int*)env->GetIntArrayElements(_ndsm_r_step_bounds, 0) : NULL; + int* step_bounds = (has_yes_vec) ? (int*)env->GetIntArrayElements(_prob_step_bounds, 0) : NULL; for(int rewi = 0; rewi < lenRew; rewi++) if (step_bounds_r[rewi] != -1) {