Skip to content

Commit ee77d75

Browse files
committed
Update Windows JNI status constants for Yices 2.7
1 parent bf8968e commit ee77d75

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/main/java/com/sri/yices/yicesJNIforWindows.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2640,8 +2640,8 @@ JNIEXPORT jbooleanArray JNICALL Java_com_sri_yices_Yices_bvConstValue(JNIEnv *en
26402640
assert(code >= 0);
26412641
result = convertToBoolArray(env, n, tmp);
26422642
delete [] tmp;
2643-
} catch (std::bad_alloc) {
2644-
out_of_mem_exception(env);
2643+
} catch (std::bad_alloc&) {
2644+
out_of_mem_exception(env);
26452645
}
26462646
}
26472647
}
@@ -3557,7 +3557,7 @@ JNIEXPORT jint JNICALL Java_com_sri_yices_Yices_checkFormula(JNIEnv *env, jclass
35573557
}
35583558
if (wantModel) {
35593559
code = yices_check_formula(formula, ls, &model, ds);
3560-
if (code == STATUS_SAT) {
3560+
if (code == YICES_STATUS_SAT) {
35613561
mdl = reinterpret_cast<jlong>(model);
35623562
env->SetLongArrayRegion(marr, 0, 1, &mdl);
35633563
}
@@ -3613,7 +3613,7 @@ JNIEXPORT jint JNICALL Java_com_sri_yices_Yices_checkFormulas(JNIEnv *env, jclas
36133613
}
36143614
if (wantModel) {
36153615
code = yices_check_formulas(tarr, n, ls, &model, ds);
3616-
if (code == STATUS_SAT) {
3616+
if (code == YICES_STATUS_SAT) {
36173617
mdl = reinterpret_cast<jlong>(model);
36183618
env->SetLongArrayRegion(marr, 0, 1, &mdl);
36193619
}

0 commit comments

Comments
 (0)