diff --git a/templates/android/src/jni.cpp b/templates/android/src/jni.cpp index f482d65..dc038c1 100644 --- a/templates/android/src/jni.cpp +++ b/templates/android/src/jni.cpp @@ -328,7 +328,7 @@ JNI_FUNC(nativeSetParameter)(JNIEnv* env, jobject thiz, jint i, jfloat v) { if (param_data[i].flags & (PARAM_BYPASS | PARAM_TOGGLED)) v = v > 0.5f ? 1.f : 0.f; else if (param_data[i].flags & PARAM_INTEGER) - v = (int32_t)(v + (v >= 0.? : 0.5f : -0.5f)); + v = (int32_t)(v + (v >= 0.f ? 0.5f : -0.5f)); v = std::min(std::max(v, param_data[i].min), param_data[i].max); #if PARAMETERS_N > 0 mutex.lock();