Cast to unsigned

This commit is contained in:
khanhduytran0 2020-11-16 15:08:21 +07:00
parent 97904c3b4a
commit e37086b1da

View File

@ -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);
}