From 45e789005238eec91d2453bad13696a31773efea Mon Sep 17 00:00:00 2001 From: Rohit Vighne Date: Thu, 5 Apr 2018 16:15:46 -0700 Subject: [PATCH] Compare enum value to correct string --- Pathfinder-Java/src/native/c/pathfinder_java.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Pathfinder-Java/src/native/c/pathfinder_java.c b/Pathfinder-Java/src/native/c/pathfinder_java.c index 38a7b32..54b50d4 100644 --- a/Pathfinder-Java/src/native/c/pathfinder_java.c +++ b/Pathfinder-Java/src/native/c/pathfinder_java.c @@ -50,9 +50,9 @@ fitmethod getFitMethod(JNIEnv *env, jobject obj) { fitmethod method; - if (strcmp(nativeString, "FIT_HERMITE_CUBIC") == 0) { + if (strcmp(nativeString, "HERMITE_CUBIC") == 0) { method = FIT_HERMITE_CUBIC; - } else if (strcmp(nativeString, "FIT_HERMITE_QUINTIC") == 0) { + } else if (strcmp(nativeString, "HERMITE_QUINTIC") == 0) { method = FIT_HERMITE_QUINTIC; } else { method = FIT_HERMITE_CUBIC; @@ -433,4 +433,4 @@ JNIEXPORT jobjectArray JNICALL Java_jaci_pathfinder_PathfinderJNI_trajectoryDese free(segs); return arr; -} \ No newline at end of file +}