@@ -885,11 +885,11 @@ AwtComponent* comp = (AwtComponent*)JNI_GET_PDATA(peer); if (comp != NULL) { comp->SetInputMethod(self, useNativeCompWindow); - comp->ImmAssociateContext((HIMC)context); + comp->ImmAssociateContext((HIMC)(uintptr_t)context); } if (peer != NULL) { env->DeleteGlobalRef(peer); }