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 +}