PKGBUILDs/extra/cantor/julia-1.11.patch
2024-10-11 10:34:24 +00:00

16 lines
891 B
Diff

diff --git a/src/backends/julia/juliaserver/juliaserver.cpp b/src/backends/julia/juliaserver/juliaserver.cpp
index 0eda2322..c84495c8 100644
--- a/src/backends/julia/juliaserver/juliaserver.cpp
+++ b/src/backends/julia/juliaserver/juliaserver.cpp
@@ -188,7 +188,11 @@ void JuliaServer::parseJlModule(jl_module_t* module, bool parseValue)
jl_function_t* jl_names_function = jl_get_function(jl_base_module, "names");
jl_value_t* names = jl_call1(jl_names_function, (jl_value_t*)module);
+#if QT_VERSION_CHECK(JULIA_VERSION_MAJOR, JULIA_VERSION_MINOR, 0) >= QT_VERSION_CHECK(1, 11, 0)
+ jl_value_t **data = (jl_value_t**)jl_array_data(names, void);
+#else
jl_value_t **data = (jl_value_t**)jl_array_data(names);
+#endif
for (size_t i = 0; i < jl_array_len(names); i++)
{
bool isBindingResolved = (bool)jl_binding_resolved_p(module, (jl_sym_t*)(data[i]));