From e37086b1da3343f510ee0494033ec623c60d36d5 Mon Sep 17 00:00:00 2001 From: khanhduytran0 Date: Mon, 16 Nov 2020 15:08:21 +0700 Subject: [PATCH] Cast to unsigned --- app/src/main/jni/input_bridge_v3.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/jni/input_bridge_v3.c b/app/src/main/jni/input_bridge_v3.c index 911002d83..e85946c82 100644 --- a/app/src/main/jni/input_bridge_v3.c +++ b/app/src/main/jni/input_bridge_v3.c @@ -188,7 +188,7 @@ JNIEXPORT jboolean JNICALL Java_org_lwjgl_glfw_CallbackBridge_nativeSendChar(JNI if (isMinecraft1p12 || isUseStackQueueCall) { sendData(EVENT_TYPE_CHAR, codepoint, 0, 0, 0); } else { - GLFW_invoke_Char(showingWindow, codepoint); + GLFW_invoke_Char(showingWindow, unsigned(codepoint)); } return JNI_TRUE; } @@ -198,7 +198,7 @@ JNIEXPORT jboolean JNICALL Java_org_lwjgl_glfw_CallbackBridge_nativeSendChar(JNI JNIEXPORT jboolean JNICALL Java_org_lwjgl_glfw_CallbackBridge_nativeSendCharMods(JNIEnv* env, jclass clazz, jint codepoint, jint mods) { if (GLFW_invoke_CharMods && isInputReady) { if (isMinecraft1p12 || isUseStackQueueCall) { - sendData(EVENT_TYPE_CHAR_MODS, codepoint, mods, 0, 0); + sendData(EVENT_TYPE_CHAR_MODS, unsigned(codepoint), mods, 0, 0); } else { GLFW_invoke_CharMods(showingWindow, codepoint, mods); }